|
|
| go ahead... be a heretic | |
| PerlMonks |
Re^2: Experimenting with Lvalue Subsby dragonchild (Archbishop) |
| on Jan 24, 2005 at 18:23 UTC ( #424652=note: print w/ replies, xml ) | Need Help?? |
|
By placing it into the scalar slot associated of the typeglob of the functions name. That's not so good - you run the risk of clobbering something. Doing an implicit 'local' might help, but what do you do with lvalue-able anonymous subs? *^_ is a much better idea, imho. And, I'd just have it go to @^_ straight off. That way, it would act as a standard assignment does. $foo = 1..3; anyone? (FYI - it's mnemonic, not pnemonic ... you want memory, not the plague.) Being right, does not endow the right to be rude; politeness costs nothing.
In Section
Meditations
|
|
||||||||||||||||||||||