No such thing as a small change | |
PerlMonks |
How do I write subs that take bare blocks as args?by DamnDirtyApe (Curate) |
on Jun 28, 2002 at 05:51 UTC ( [id://177940]=perlquestion: print w/replies, xml ) | Need Help?? |
DamnDirtyApe has asked for the wisdom of the Perl Monks concerning the following question: Fellow Monks; Can someone please tell me how I can write a function that accepts a bare block as an argument, like map? I want to write a function that's called like this:
So far, this is the closest I've been able to get:
I've tried the Camel Book, the Ram Book, Google's thepen search, Super Search, perlfaq, perlsub... I just can't search anymore. I'd really appreciate a hand. Thanks, _______________ D a m n D i r t y A p e Home Node | Email
Back to
Seekers of Perl Wisdom
|
|