There's more than one way to do things | |
PerlMonks |
Re: accessing valuesby choroba (Cardinal) |
on Oct 14, 2020 at 21:12 UTC ( [id://11122843]=note: print w/replies, xml ) | Need Help?? |
Variables declared with my in 1.pl are defined at file scope: once the file ends, they're out of scope. Neither require nor do can see them.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|