Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks.i have a file.i want to make an array of arrays from this file but i dont want first element.i have written following code but there is problem that i cant understand.please help me.
#!/usr/bin/perl -w use strict; my @AoA; my $aref; open (IN,'<result'); while(<IN>){ push @AoA,[split]; } for $aref ( @AoA ) { shift @$aref ; }
i want finally @AoA .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array of arrays
by moritz (Cardinal) on Jul 28, 2011 at 12:20 UTC | |
by Anonymous Monk on Jul 28, 2011 at 12:24 UTC | |
by moritz (Cardinal) on Jul 28, 2011 at 12:49 UTC | |
|
Re: array of arrays
by JavaFan (Canon) on Jul 28, 2011 at 12:56 UTC | |
by Anonymous Monk on Jul 28, 2011 at 13:06 UTC | |
by moritz (Cardinal) on Jul 28, 2011 at 13:12 UTC | |
|
Re: array of arrays
by Anonymous Monk on Jul 28, 2011 at 12:46 UTC | |
by Anonymous Monk on Jul 28, 2011 at 12:59 UTC | |
|
Re: array of arrays
by persianswallow (Novice) on Jul 28, 2011 at 17:16 UTC |