Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Building an anonymous functionby BorgCopyeditor (Friar) |
on Aug 11, 2002 at 06:19 UTC ( [id://189271]=note: print w/replies, xml ) | Need Help?? |
Thanks. It looks obvious ... now that I've seen a solution. :) I ended up doing it inside out, as it were, initially defining an anonymous sub just for the part of the enclosing sub that needed differing behaviors, and calling that within that enclosing sub. The conditional assignment thingy with nested ternary '?'s is very elegant, I think. Thanks again, BCE
In Section
Seekers of Perl Wisdom
|
|