We don't bite newbies here... much | |
PerlMonks |
Re^3: how to declare a local *subname=sub{}?by LanX (Saint) |
on Oct 30, 2016 at 23:05 UTC ( [id://1174975]=note: print w/replies, xml ) | Need Help?? |
1) because local restores the (here undef) value of the code slot of *asub at the end of the scope, which is reached before stuff() is called.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|