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
In reply to Re: code to get the first line of an array
by davido
in thread code to get the first line of an array
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |