Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://335245]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I loop over a reference to an array?
in thread How do I access an array for which I only have a reference?

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://335245]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found