Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://335245]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-02-26 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (372 votes). Check out past polls.