24 $main = join(':', sort(keys %main::));
25 $xyz = join(':', sort(keys %xyz::));
26 $ABC = join(':', sort(keys %ABC::));
29 print $xyz eq 'bar:main:new:xyz:ABC' ? "ok 1\n" : "not ok 1 '$xyz'\n";
31 print $xyz eq 'ABC:bar:main:new:xyz' ? "ok 1\n" : "not ok 1 '$xyz'\n";
33 print $ABC eq 'blurfl:dyick' ? "ok 2\n" : "not ok 2 '$ABC'\n";
34 print $main'blurfl == 123 ? "ok 3\n" : "not ok 3\n";
38 print $blurfl == 5 ? "ok 4\n" : "not ok 4\n";
39 eval 'print $blurfl == 5 ? "ok 5\n" : "not ok 5\n";';
40 eval 'package main; print $blurfl == 123 ? "ok 6\n" : "not ok 6\n";';
41 print $blurfl == 5 ? "ok 7\n" : "not ok 7\n";
55 print((foo(1))[0] eq 'PQR' ? "ok 8\n" : "not ok 8\n");
59 eval { $a = *xyz::new{PACKAGE}; };
60 print $a eq "__ANON__" ? "ok 9\n" : "not ok 9\n";
63 print $@ =~ /^Can't use anonymous symbol table for method lookup/ ?
64 "ok 10\n" : "not ok 10\n";
66 print "$Q" =~ /^__ANON__=/ ? "ok 11\n" : "not ok 11\n";
68 print ref $Q eq "__ANON__" ? "ok 12\n" : "not ok 12\n";