laziness, impatience, and hubris | |
PerlMonks |
Re: Style - how to give class method call as parameterby Corion (Patriarch) |
on Jun 26, 2012 at 13:47 UTC ( [id://978427]=note: print w/replies, xml ) | Need Help?? |
Personally, I like number three best, but as an alternative, you can wrap number three in some syntactic sugar:
Unfortunately, the & prototype must come as the first argument. I'm also not convinced that this style is less confusing/more readable than the other.
In Section
Seekers of Perl Wisdom
|
|