good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: Building an anonymous function
by BorgCopyeditor
|
|