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

Re: map vs. foreach

by nardo (Friar)
on Apr 25, 2001 at 07:07 UTC ( [id://75362]=note: print w/replies, xml ) Need Help??


in reply to map vs. foreach

From a style standpoint, I consider foreach to generally be better than map. For this particular problem, I would use
print join("\n", @fields), "\n";
rather than a map or foreach.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found