|
|
| There's more than one way to do things | |
| PerlMonks |
Re: How do I write subs that take bare blocks as args?by Joost (Canon) |
| on Jun 28, 2002 at 11:18 UTC ( #177990=note: print w/ replies, xml ) | Need Help?? |
|
By the way, if you use a & prototype, you can still only use a bare block as the first argument - for the other arguments you have to supply a coderef by using sub { ... }. I have written a module that can optionally bypass this restriction using Filter::Util::Call - you might want to take a look at this.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||