Keep It Simple, Stupid | |
PerlMonks |
Re: Never, never, neverby theorbtwo (Prior) |
on Apr 22, 2005 at 19:17 UTC ( [id://450543]=note: print w/replies, xml ) | Need Help?? |
johnnywang, there's an old saying, quoted in somebody's .signature, to the effect of "examine what is being said, not who is speaking". Additionally, never say never again. Exporter uses symbolic references in order to allow you to specify the names of subs you wish to import and export. You pretty well have to use them there, and in AUTOLOAD subs that create new subroutines at runtime. You can use $1 without checking that you match first if you really do want the strange scoping behavior -- that is, that you want the $1 from the most recently succeeded match. Of course, I wouldn't do either of those things without comments, but that doesn't mean that they aren't occassionally useful things to do. Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
In Section
Meditations
|
|