Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: How to understand chapter 6 of Higher Order Perl?

by McA (Priest)
on Mar 13, 2014 at 08:44 UTC ( #1078137=note: print w/ replies, xml ) Need Help??


in reply to Re: How to understand chapter 6 of Higher Order Perl?
in thread How to understand chapter 6 of Higher Order Perl?

May I add somthing?

The book says that this is "syntactic sugar". So, BrowserUk's example is the same as:

$later = sub { say 'Keeping my' }; ... $later->();

McA


Comment on Re^2: How to understand chapter 6 of Higher Order Perl?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-07-04 14:26 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 (60 votes), past polls