Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: map sub to list?

by Corion (Patriarch)
on Sep 09, 2013 at 17:39 UTC ( #1053055=note: print w/replies, xml ) Need Help??

in reply to Re^4: map sub to list?
in thread map sub to list?

Your use of syntax leaves me with the impression that before Perl you only knew Haskell, or some other, lazy / currying functional language.

The major difference between Perl and these others is that Perl is eager, so any unadorned mention of a function will simply call it. Unless you use built-in functions or fancy syntax tricks, all function parameters are passed in parentheses.

Creating/returning new functions is quite possible in Perl, but the usual approach is more eager in the sense of passing around values instead of passing around functions that, at some time in the future will be called to produce the final output of the program.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-12-09 20:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found