last element of an array in perl
April 13th, 2007 by Lawrence David
perl indexes from the back using negative numbers. so to get the last element of @array:
$array[-1]
April 13th, 2007 by Lawrence David
perl indexes from the back using negative numbers. so to get the last element of @array:
$array[-1]
Thank you….it was very useful
Cheers,
Sanjay.