Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: $_ functions vs argument-using functions

by Jenda (Abbot)
on Sep 10, 2013 at 13:49 UTC ( #1053265=note: print w/ replies, xml ) Need Help??


in reply to $_ functions vs argument-using functions

map (f1($_), (10, 20)) # convert f1 to $_-style my $x = do {local $_ = 10; f2}; # or, if you just want to call that subroutine, f2 for (15);

Jenda
Enoch was right!
Enjoy the last years of Rome.


Comment on Re: $_ functions vs argument-using functions
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-07-28 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls