develooper Front page | perl.beginners | Postings from February 2009

copy 3D array to 2D array

Thread Next
From:
Rob Canning
Date:
February 10, 2009 08:16
Subject:
copy 3D array to 2D array
Message ID:
4991A7C6.3090700@eircom.net
hi,

i am trying to copy a three dimensional array to a two dimentional one

this:

@AoA = ( [2, 3], [4, 5, 7], [0] );

to this

@A = qw(2 3 4 5 7 0);

i know the answer is staring at me in perldoc perldsc but i cant see it!

thanks

rob

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About