Do you know where your variables are? | |
PerlMonks |
Re: scope of variables in a subby choroba (Cardinal) |
on Sep 24, 2020 at 09:40 UTC ( [id://11122153]=note: print w/replies, xml ) | Need Help?? |
So, you declare the subroutine with empty prototypes, i.e. as taking no parameters, but then you extract the first parameter. See Understand why you probably don’t need prototypes.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|