$; perl -MRef::Util=is_arrayref -wle'my @a = (); print $a[-1]; print is_arrayref($a[-1])'
Use of uninitialized value in print at -e line 1.
Modification of non-creatable array value attempted, subscript -1 at -e line 1.
This only happens with perls earlier than 5.20.
The problem is not simply with sub arguments:
$; perl -wle'my @a = (); print $a[-1]; sub foo { my (@args) = @_; print $args[-1] } foo();'
Use of uninitialized value in print at -e line 1.
Use of uninitialized value in print at -e line 1.
This only happens with perls earlier than 5.20.
The problem is not simply with sub arguments: