Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(MeowChow) Re: Pushing multi-dimensional arrays onto each other

by MeowChow (Vicar)
on May 14, 2002 at 21:00 UTC ( [id://166577] : note . print w/replies, xml ) Need Help??


in reply to Pushing multi-dimensional arrays onto each other

That's correct:
use Data::Dumper; @results1 = ('employee1','address1','payrate1','hiredate1', 'employee2','address2','payrate2','hiredate2'); @results2 = ('employee3','address3','payrate3','hiredate3', 'employee4','address4','payrate4','hiredate4'); push @results1, @results2; print Dumper \@results1; ### OUTPUT ### $VAR1 = [ 'employee1', 'address1', 'payrate1', 'hiredate1', 'employee2', 'address2', 'payrate2', 'hiredate2', 'employee3', 'address3', 'payrate3', 'hiredate3', 'employee4', 'address4', 'payrate4', 'hiredate4' ];
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print