11 plan skip_all => "Anonymous stashes in PP need at least perl 5.14"
12 if Package::Stash::BROKEN_GLOB_ASSIGNMENT
13 && $Package::Stash::IMPLEMENTATION eq 'PP';
16 my $stash = Package::Stash->new($anon);
17 # no way to bless something into a hashref yet
18 # my $obj = $anon->bless({});
21 my $code = sub { 'FOO' };
22 $stash->add_symbol('&foo' => $code);
23 is($stash->get_symbol('&foo'), $code);
24 # is($obj->foo, 'FOO');
28 local $TODO = ($Package::Stash::IMPLEMENTATION eq 'PP')
29 ? "can't inflate weird stash entries"
35 my $code = $stash->get_symbol('&bar');
36 is(ref($code), 'CODE');
46 local $TODO = ($Package::Stash::IMPLEMENTATION eq 'PP')
47 ? "can't inflate weird stash entries"
53 my $code = $stash->get_symbol('&baz');
54 is(ref($code), 'CODE');
56 exception { $code->() },
57 qr/Undefined subroutine \&__ANON__::baz called/