in reply to Getting last value in array

here's another way to do it (wouldnt recommend it though :)
print $array[scalar @array - 1];