P is for Practical | |
PerlMonks |
Re^3: Scope::Upper localize? (ugh)by Anonymous Monk |
on Sep 11, 2012 at 02:25 UTC ( [id://992901]=note: print w/replies, xml ) | Need Help?? |
If the sole purpose of the called function that uses localize(), is to effect the localized change within the caller's scope, no encapsulation is broken. No more than calling local within a subroutine breaks anything. So why not use local then?
In Section
Seekers of Perl Wisdom
|
|