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 #222
Comments
This is an issue tracker for the perl module |
perlpunk
added a commit
that referenced
this issue
May 21, 2022
I have the habit to quote these variables when passing them. I did that in #223 too. |
@perlpunk I mean this sub: https://perldoc.perl.org/perldebguts#Environment-Variables {
package DB;
sub DB {}
sub sub {
# At this debugger sub
# call_something(); # we can call something that uses regex
'asdf' =~ /.*/; # or use regex directrly. And this will break parameter passed to subroutine
&$sub
}
} |
Thank you for fixing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: