Adrian M. Enache [Thu, 21 Aug 2003 21:17:26 +0000 (00:17 +0300)]
Message-ID: <
20030821181726.GA1241@ratsnest.hole>
p4raw-id: //depot/perl@20805
if (!stash) {
if (add) {
- qerror(Perl_mess(aTHX_
+ register SV *err = Perl_mess(aTHX_
"Global symbol \"%s%s\" requires explicit package name",
(sv_type == SVt_PV ? "$"
: sv_type == SVt_PVAV ? "@"
: sv_type == SVt_PVHV ? "%"
- : ""), name));
+ : ""), name);
+ if (USE_UTF8_IN_NAMES)
+ SvUTF8_on(err);
+ qerror(err);
stash = GvHV(gv_fetchpv("<none>::", GV_ADDMULTI, SVt_PVHV));
}
else
#!./perl
-print "1..13\n";
+print "1..14\n";
$SIG{__DIE__} = sub { print ref($_[0]) ? ("ok ",$_[0]->[0]++,"\n") : @_ } ;
print "ok 12\n";
eval { warn $msg }; print "not " unless $err eq $msg;
print "ok 13\n";
+ eval qq/ use strict; \$\x{3b1} /;
+ print "not " unless $@ =~ /Global symbol "\$\x{3b1}"/;
+ print "ok 14\n";
}