We don't bite newbies here... much | |
PerlMonks |
Re^2: Is it possible to create a sub exclusive to a sub?by revdiablo (Prior) |
on Sep 19, 2004 at 02:42 UTC ( [id://392093]=note: print w/replies, xml ) | Need Help?? |
If you want a truly local sub, your best bet is probably to build a closure Just a bit of clarification, a closure is not strictly necessary. What he wants is a lexically scoped, anonymous subroutine -- which is what you've demonstrated here. Whether that subroutine creates a closure is beside the point.
In Section
Seekers of Perl Wisdom
|
|