|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: How do I write subs that take bare blocks as args?by DamnDirtyApe (Curate) |
| on Jun 28, 2002 at 06:20 UTC ( #177945=note: print w/ replies, xml ) | Need Help?? |
|
Thank you both. I've found the relevant sections now in perlsub and in the Camel book. For the record, it was as easy as:
Thanks again. Update: On reading kvale's node a little closer, I tried changing my code to:
...which also worked. Is there any advantage/disadvantage to this over eval? _______________ D a m n D i r t y A p e Home Node | Email
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||