perl last element in array code example
Example 1: how to get last element of array in perl
print $#numbers_array;
# 4
print $numbers_array[$#numbers_array];
# 62
Example 2: last index array perl
print $#numbers_array;
# 4
print $numbers_array[$#numbers_array]; -between brackets-
# 62