Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://282150]
help
Chatterbox?
[Corion]: I should re-prod tsee about the Filter::Simple branches that he might want to merge or that I should merge so he can do a release ;-D
[ambrus]: Corion: actually, schmorp has complained about how you used that syntax in the draft for AnyEvent::Impl:: Prima. I don't think he screamed, but whatever.
[ambrus]: Yes, I know you fixed that since.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-02-27 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (388 votes). Check out past polls.