http://www.perlmonks.org?node_id=282150


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