Closed snoopyjc closed 1 year ago
Copies of @_ need to be autovivified. For example (from Date::Manip::Obj):
sub new { my(@args) = @_; ... $class = shift(@args); if (ref($args[0]) =~ /^Date::Manip/) {...}
The reference to $args[0] raises an IndexError exception if $args is an empty list instead of creating the element out of whole cloth.
Fixed in v1.030
Copies of @_ need to be autovivified. For example (from Date::Manip::Obj):
The reference to $args[0] raises an IndexError exception if $args is an empty list instead of creating the element out of whole cloth.