Think about Loose Coupling | |
PerlMonks |
Re: aliasing subsby edan (Curate) |
on May 06, 2003 at 11:37 UTC ( [id://255843]=note: print w/replies, xml ) | Need Help?? |
I agree with the valid points that were already rasied:
However, my curiosity was piqued about how to go about this, if the need did come up somehow, even though I think solution #2 would be the simplest/best answer most (all?) of the time... So I came up with this snippet using closures, as you mentioned
Works for me... Update: Expunged the OPs leaning toothpicks, since I am attributing the snippet to myself ;-) Update: Or this: -- 3dan
In Section
Seekers of Perl Wisdom
|
|