use Symbol;
plan skip_all => "Anonymous stashes in PP need at least perl 5.14"
- if Package::Stash::BROKEN_GLOB_ASSIGNMENT;
+ if Package::Stash::BROKEN_GLOB_ASSIGNMENT
+ && $Package::Stash::IMPLEMENTATION eq 'PP';
my $Foo = Package::Anon->new('Foo');
$Foo->{SOME_CONSTANT} = \1;
use Symbol;
plan skip_all => "Anonymous stashes in PP need at least perl 5.14"
- if Package::Stash::BROKEN_GLOB_ASSIGNMENT;
+ if Package::Stash::BROKEN_GLOB_ASSIGNMENT
+ && $Package::Stash::IMPLEMENTATION eq 'PP';
my $anon = Package::Anon->new;
my $stash = Package::Stash->new($anon);
use Symbol;
plan skip_all => "Anonymous stashes in PP need at least perl 5.14"
- if Package::Stash::BROKEN_GLOB_ASSIGNMENT;
+ if Package::Stash::BROKEN_GLOB_ASSIGNMENT
+ && $Package::Stash::IMPLEMENTATION eq 'PP';
my $Foo = {};
$Foo->{SOME_CONSTANT} = \1;
use Symbol;
plan skip_all => "Anonymous stashes in PP need at least perl 5.14"
- if Package::Stash::BROKEN_GLOB_ASSIGNMENT;
+ if Package::Stash::BROKEN_GLOB_ASSIGNMENT
+ && $Package::Stash::IMPLEMENTATION eq 'PP';
my $anon = {};
my $stash = Package::Stash->new($anon);
skip "PP doesn't support anon stashes before 5.14", 4
if $Package::Stash::IMPLEMENTATION eq 'PP'
&& Package::Stash::BROKEN_GLOB_ASSIGNMENT;
- local $TODO = "don't know how to properly inflate a stash entry";
+ local $TODO = ($Package::Stash::IMPLEMENTATION eq 'PP')
+ ? "don't know how to properly inflate a stash entry"
+ : undef;
my $anon = {}; # not using Package::Anon
$anon->{foo} = -1; # stub