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

Re: Answer: How do I loop over a reference to an array?

by Wonko the sane (Deacon)
on Mar 09, 2004 at 19:27 UTC ( #335245=note: print w/ replies, xml ) Need Help??

Map Abuse Map Abuse!! :)

IMHO,a map in void context is a sign you should be using a for loop instead.

print qq{$_\n} for ( @$arrayref );
Update: Oops, read rest of thread. Apologize for stating the obvious. :P

Wonko.


Comment on Re: Answer: How do I loop over a reference to an array?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-07-11 23:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (236 votes), past polls