![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^3: make subroutine that takes expression as implicit block as first argby kennethk (Abbot) |
on Aug 13, 2010 at 20:01 UTC ( #854999=note: print w/replies, xml ) | Need Help?? |
I added a use case, as this sort of structure is a bit sensitive - perl apparently interprets the OP proposed use case as an anonymous hash because parentheses are present.
When I was going through a clever phase, I played a bit with prototypes, and decided they are generally more trouble than they are worth. IMHO, of course.
In Section
Seekers of Perl Wisdom
|
|