}
sub StrVal {
- (ref $_[0] && Overloaded($_[0]) or ref($_[0]) eq 'Regexp') ?
+ (ref $_[0] && OverloadedStringify($_[0]) or ref($_[0]) eq 'Regexp') ?
(AddrRef(shift)) :
"$_[0]";
}
{
package perl31793;
- use overload cmp => sub { 0 };
+ use overload cmp => sub { 0 }, fallback => 1;
package main;
my $o = bless [], 'perl31793';
my $no = bless [], 'no_overload';