Subject: | Do die while array dereference |
This small patch allow applications survive if they occasionally try to dereference it. For example by Data::Dump::pp while trying to dump local variables on exception occur
'@{}' => sub { return $_[0] if !HAVE_OVERLOADING and caller eq __PACKAGE__;
--- # carp "Cannot use $pkg as an ARRAY reference";
+++ [ "Cannot use $pkg as an ARRAY reference" ]
},