Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: 2 dimensional array question

by Roger (Parson)
on Sep 05, 2005 at 14:13 UTC ( #489230=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @arr = ( [ qw/ 1 2 3 / ],
             [ qw/ 4 5 6 / ] );
    
  2. or download this
    use Data::Dumper;
    @arr = ( [ qw/ 1 2 3 / ],
    ...
    @arr[0] = qw/ 1 2 3 /;
    @arr[1] = qw/ 4 5 6 /;
    print Dumper(\@arr);