Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Getting a result from "foreach" block

by AnomalousMonk (Archbishop)
on Jun 26, 2014 at 18:31 UTC ( [id://1091384]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Getting a result from "foreach" block
in thread Getting a result from "foreach" block

Better, IMHO, is  my @result = map $_ * 13, @data; as already suggested by AppleFritter and CountZero. (Better because more concise and expressive, and it just leaves  $_ the heck alone.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-24 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found