in reply to code to get the first line of an array
A couple simple ways...
my $first_line = $array[0]; # or my $first_line = shift @array; # This is destructive to @array.
See perlintro and shift for details.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: code to get the first line of an array
by monarch (Priest) on Jul 12, 2005 at 06:56 UTC |