4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
15 # There was a bug with overloaded objects and threads.
16 # See rt.cpan.org 4218
17 eval { require threads; 'threads'->import; 1; };
23 if( !eval "require overload" ) {
24 plan skip_all => "needs overload.pm";
35 q{""} => sub { $_[0]->{string} };
39 bless { string => shift }, $class;
46 local $SIG{__WARN__} = sub { $warnings = join '', @_ };
47 my $obj = Overloaded->new('foo');
50 my $undef = Overloaded->new(undef);