Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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??


in reply to How do I write subs that take bare blocks as args?

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.

-- Joost downtime n. The period during which a system is error-free and immune from user input.


Comment on Re: How do I write subs that take bare blocks as args?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://177990]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2015-07-04 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls