Re:History of T (2001)
by slobotron on Friday August 17, 2018 @04:08PM
(#17785320)
You can get dynamic scoping in perl by prefixing things with `local`.
All the caveats with playing with globals above notwithstanding, it's more useful in practice as a way to get a 'slightly different copy of an object':
this gives
Great way for setting up log contexts etc that automatically get removed after the scope exits...
[ Parent
| on HN ]
There are no comments on this comment yet.