p4raw-id: //depot/perl@22606
sv_catpv(sv,name);
sv_catpvn(sv,"::", 2);
}
- sv_catpvn(sv,GvNAME(gv),GvNAMELEN(gv));
+ if (((unsigned int)*GvNAME(gv)) <= 26) { /* handle $^FOO */
+ Perl_sv_catpvf(aTHX_ sv,"^%c", *GvNAME(gv) + 'A' - 1);
+ sv_catpvn(sv,GvNAME(gv)+1,GvNAMELEN(gv)-1);
+ }
+ else
+ sv_catpvn(sv,GvNAME(gv),GvNAMELEN(gv));
+
}
void
use warnings;
-print "1..52\n";
+print "1..53\n";
# type coersion on assignment
$foo = 'foo';
print $x || "not ok 52\n";
}
+# stringified typeglob should escape leading control char
+print *^A eq "*main::^A" ? "ok 53\n" : "not ok 53\n";
+
__END__
ok 44
ok 48