Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Reading a Line into an Arrayby iakobski (Pilgrim) |
on May 31, 2001 at 11:56 UTC ( [id://84489]=note: print w/replies, xml ) | Need Help?? |
By the way, in Perl you don't often have to find out how many elements there are in an array. If you want the last element use:
my $last = $array[ -1 ];
-- iakobski
In Section
Seekers of Perl Wisdom
|
|