Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 surveying the Monastery: (4)
As of 2018-02-26 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (316 votes). Check out past polls.

    Notices?