summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-03-29 20:10:05 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-03-29 20:10:05 +0000
commit257984c0f3908c69bf7c9da69ef001a4c39a7cce (patch)
tree6da974caa5dc5e8020a7f9cd6f838ea0a5e79806
parent38c076c778be4d77b58837d5c13b55bd2f5fb50e (diff)
downloadperl-257984c0f3908c69bf7c9da69ef001a4c39a7cce.tar.gz
backout change 22606 (make gv_fullname() include a literal '^')
it breaks select. p4raw-id: //depot/perl@22608
-rw-r--r--gv.c8
-rwxr-xr-xt/op/gv.t5
2 files changed, 2 insertions, 11 deletions
diff --git a/gv.c b/gv.c
index b2ae13c46a..8a270650b9 100644
--- a/gv.c
+++ b/gv.c
@@ -1096,13 +1096,7 @@ Perl_gv_fullname4(pTHX_ SV *sv, GV *gv, const char *prefix, bool keepmain)
sv_catpv(sv,name);
sv_catpvn(sv,"::", 2);
}
- 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));
-
+ sv_catpvn(sv,GvNAME(gv),GvNAMELEN(gv));
}
void
diff --git a/t/op/gv.t b/t/op/gv.t
index 851f6b1c77..5b1237a9c8 100755
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -11,7 +11,7 @@ BEGIN {
use warnings;
-print "1..53\n";
+print "1..52\n";
# type coersion on assignment
$foo = 'foo';
@@ -242,9 +242,6 @@ print $j[0] == 1 ? "ok 43\n" : "not ok 43\n";
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