my $item_before_last = $array[ $#array - 1 ];