Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: map vs for\foreach.

by ikegami (Patriarch)
on Mar 13, 2015 at 17:35 UTC ( [id://1119979]=note: print w/replies, xml ) Need Help??


in reply to Re^3: map vs for\foreach.
in thread map vs for\foreach.

for (@a) is indeed optimized to not place the elements of `@a` on the stack. for ((),@a) would prevent the optimization.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-25 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found