use Scalar::Util qw(reftype refaddr blessed);
-our $VERSION = '1.25';
+our $VERSION = '1.26';
my $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
=head1 VERSION
-This document describes threads::shared version 1.25
+This document describes threads::shared version 1.26
=head1 SYNOPSIS
L<http://www.cpanforum.com/dist/threads-shared>
Annotated POD for L<threads::shared>:
-L<http://annocpan.org/~JDHEDDEN/threads-shared-1.25/shared.pm>
+L<http://annocpan.org/~JDHEDDEN/threads-shared-1.26/shared.pm>
Source repository:
L<http://code.google.com/p/threads-shared/>
my $bork = shared_clone($obj);
ok($test++, $$bork == 99, 'cloned scalar ref object');
- ok($test++, Internals::SvREADONLY($$bork), 'read-only');
+ ok($test++, ($] < 5.008003) || Internals::SvREADONLY($$bork), 'read-only');
ok($test++, ref($bork) eq 'Bork', 'Object class');
threads->create(sub {
ok($test++, $$bork == 99, 'cloned scalar ref object in thread');
- ok($test++, Internals::SvREADONLY($$bork), 'read-only');
+ ok($test++, ($] < 5.008003) || Internals::SvREADONLY($$bork), 'read-only');
ok($test++, ref($bork) eq 'Bork', 'Object class');
})->join();