doesn't compile.
overload must not clobber $! or $@ behind the scenes when
loading an XS module.
p4raw-id: //depot/perl@31076
our $VERSION = '1.06';
-require Scalar::Util;
-
sub nil {}
sub OVERLOAD {
sub Method {
my $package = shift;
if(ref $package) {
+ local $@;
+ local $!;
+ require Scalar::Util;
$package = Scalar::Util::blessed($package);
return undef if !defined $package;
}
my $package = ref $_[0];
return "$_[0]" unless $package;
+ local $@;
+ local $!;
+ require Scalar::Util;
my $class = Scalar::Util::blessed($_[0]);
my $class_prefix = defined($class) ? "$class=" : "";
my $type = Scalar::Util::reftype($_[0]);