after eval or require
p4raw-id: //depot/perl@23528
#!./perl
-print "1..12\n";
+print "1..14\n";
$blurfl = 123;
$foo = 3;
print ref $Q eq "__ANON__" ? "ok 12\n" : "not ok 12\n";
+package bug32562;
+print __PACKAGE__ eq 'bug32562' ? "ok 13\n" : "not ok 13\n";
+print eval '__PACKAGE__' eq 'bug32562' ? "ok 14\n" : "not ok 14\n";
case KEY___PACKAGE__:
yylval.opval = (OP*)newSVOP(OP_CONST, 0,
(PL_curstash
- ? newSVsv(PL_curstname)
+ ? newSVpv(HvNAME(PL_curstash), 0)
: &PL_sv_undef));
TERM(THING);