Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 musing on the Monastery: (6)
As of 2014-12-20 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls