8 my $code = eval_closure(
9 source => 'no strict "refs"; sub { keys %{__PACKAGE__ . "::"} }',
12 # defining the sub { } creates __ANON__, calling 'no strict' creates BEGIN
13 my @stash_keys = grep { $_ ne '__ANON__' && $_ ne 'BEGIN' } $code->();
15 is_deeply([@stash_keys], [], "compiled in an empty package");