Think about Loose Coupling | |
PerlMonks |
Re: Pushing multi-dimensional arrays onto each otherby csotzing (Sexton) |
on May 14, 2002 at 21:33 UTC ( [id://166584]=note: print w/replies, xml ) | Need Help?? |
push(@a,@b) push(@a,[@b]) The first line will push elements of array b onto array a. The result will be 1-dimensional. The second line pushes @b, as an array, onto @a to create a 2-dimensional array. Hope that helps.
In Section
Seekers of Perl Wisdom
|
|