Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: make subroutine that takes expression as implicit block as first arg

by kennethk (Abbot)
on Aug 13, 2010 at 20:01 UTC ( #854999=note: print w/replies, xml ) Need Help??


in reply to Re^2: make subroutine that takes expression as implicit block as first arg
in thread make subroutine that takes expression as implicit block as first arg

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.

  • Comment on Re^3: make subroutine that takes expression as implicit block as first arg

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2023-09-22 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?