How To Access The Last Item In A Perl Array
Computing : Learning Perl The easiest way to do this is to count back from the end of the array. For instance, if an array has three values, $item[0], $item[1] and $item[2] then you can access the last with: $item[-1]... an easy way to reach it!
Questions about Learn Perl:
|
|