Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Extracting columns from a two dimensional array

by Chady (Priest)
on Dec 21, 2004 at 10:39 UTC ( [id://416425] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array=( [0,1,2,3,4],
                [25,26,27,28,29],
                [10,11,12,13,14]
                );
    print @{@array[$_]}[3] for 0 .. 2;