summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-21 20:43:21 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-21 20:43:21 -0700
commitf8326b3e75b86d985f87404e11ed018bc037a3af (patch)
tree87a2ebc7d1d66ad05beaa703b1df1e50b8f5322f /gv.c
parentea3b834e87e81ac3f0144ea0c26617a0ddb5d361 (diff)
downloadperl-f8326b3e75b86d985f87404e11ed018bc037a3af.tar.gz
Make defined(${'$'}) return true
Commit 0e219455 made $$ into a magical variable that is not created on startup. Usually perl pretends that built-in vars created on the fly have always existed. But commit 0e219455 did not add $$ to the list of such variables in is_gv_magical_sv. So defined ${'$'} started return- ing false.
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index c9b5de3c46..874c3dc60d 100644
--- a/gv.c
+++ b/gv.c
@@ -2771,6 +2771,7 @@ Perl_is_gv_magical_sv(pTHX_ SV *const name_sv, U32 flags)
case '>':
case '\\':
case '/':
+ case '$':
case '|':
case '+':
case ';':