Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: multi-dimensional arrays, dereferencing

by thinker (Parson)
on Aug 08, 2003 at 10:14 UTC ( #282150=note: print w/ replies, xml ) Need Help??


in reply to multi-dimensional arrays, dereferencing

Hi fabalicious

If @M is an array of array references, then

foreach $arrayref (@M) { foreach $element (@$arrayref) { print "$element "; } print "\n"; }

hope this helps

cheers

thinker


Comment on Re: multi-dimensional arrays, dereferencing
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2015-07-02 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (45 votes), past polls