10 my $source = 'sub { ++$foo }';
15 eval_closure(source => $source);
17 qr/Global symbol "\$foo/,
18 "errors with strict enabled"
27 $c1 = eval_closure(source => $source);
30 "no errors with no strict"
38 my $source = 'our $less; BEGIN { $less = $^H{less} } sub { $less }';
41 my $c1 = eval_closure(source => $source);
42 is($c1->(), undef, "nothing in the hint hash");
46 local $TODO = 'not sure how exactly to get %^H copied';
48 my $c1 = eval_closure(source => $source);
49 is($c1->(), 'stuff', "use less put stuff in the hints hash");