XP is just a number | |
PerlMonks |
Re^2: A general method of locally overriding subroutinesby xdg (Monsignor) |
on Mar 11, 2006 at 14:08 UTC ( [id://535945]=note: print w/replies, xml ) | Need Help?? |
That's a really neat way to do it. I used a similar technique for File::pushd -- using an object to enact a localized change that is reverted when the object goes out of scope. -xdg Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Meditations
|
|