New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not pass special variables to subroutines directly #7
Comments
I'm not sure why you submitted this as an issue for Exporter::Tiny as it seems unrelated. But it is because |
@tobyink https://github.com/tobyink/p5-exporter-tiny/blob/master/lib/Exporter/Tiny.pm#L26 (please also fix other places) Would be better if you pass |
I submitted because Exporter::Tiny uses $1 as parameter. |
…2 to version 1.004000 1.004000 2022-08-26 [ Documentation ] - Document that the `-lexical` export option is experimental. [ Packaging ] - No functional changes; repackage as stable. 1.003_002 2022-08-18 [ Bug Fixes ] - Quote $1 when passing it as a parameter to a function Eugen Konkov++ <tobyink/p5-exporter-tiny#7> (NEWS truncated at 15 lines)
Upstream changes: 1.004003 2022-09-30 [ Bug Fixes ] - If exporting non-CODE items which happen to have the same name as exported CODE items, their export was being quietly blocked. These exports should now work. Diab Jerius++ <tobyink/p5-exporter-tiny#9> - Using ! with a tag now works; it was previously documented as working but not implemented. Diab Jerius++ <tobyink/p5-exporter-tiny#8> 1.004002 2022-09-16 [ Test Suite ] - Fix for t/15nonhashvalue.t on old versions of Test::More which don't support `done_testing`. 1.004001 2022-09-09 [ Bug Fixes ] - Fix handling of non-hashref references in import list. 1.004000 2022-08-26 [ Documentation ] - Document that the `-lexical` export option is experimental. [ Packaging ] - No functional changes; repackage as stable. 1.003_002 2022-08-18 [ Bug Fixes ] - Quote $1 when passing it as a parameter to a function Eugen Konkov++ <tobyink/p5-exporter-tiny#7> 1.003_001 2022-07-21 [ Bug Fixes ] - Correctly check Perl version is at least 5.37.2+ before supporting -lexical option. 1.003_000 2022-07-21 - Updated: Provide a `-lexical` export option on Perl 5.37.2+.
Why:
How regular expression could be executed when sub is called? This could occur under debugger. For example some module define
sub sub
and used regex inside that subThe text was updated successfully, but these errors were encountered: