That will get the data off the end of @array2, not the beginning. Use shift instead of pop.
Update: Nothing to see here. Move along. (Must read more carefully next time).
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Re: appending arrays
by hardburn
in thread appending arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |