Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: What is (a => b => c) ?

by ikegami (Patriarch)
on Mar 27, 2015 at 18:17 UTC ( [id://1121547]=note: print w/replies, xml ) Need Help??


in reply to Re^2: What is (a => b => c) ?
in thread What is (a => b => c) ?

Not at all.

Prepending & to a sub call causes the sub call to ignore the sub's prototype.

Prepending & to a sub call with no parameter list specified (not even ()) causes the sub call to ignore the sub's prototype, and forgoes the creation of a localized @_.

These are not thing you should ever need to do. Because it must be followed by a sub call, & has the side effect of forcing the following word to be treated as the name of a sub, but that's just a side effect.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-23 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found