Keep It Simple, Stupid | |
PerlMonks |
Re^3: how to declare a local *subname=sub{}?by LanX (Saint) |
on Oct 30, 2016 at 23:12 UTC ( [id://1174976]=note: print w/replies, xml ) | Need Help?? |
2) already answered, sub declarations are done at compile time, any local commands prior in text have no effect, they are run time, ie happen later. Additionally you are explicitly setting the content of *bsub whenever you call the internal function.
updatePlease read perlsub#Temporary-Values-via-local() and following
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|