Skip to content

Commit f8326b3

Browse files
author
Father Chrysostomos
committed
Make defined(${'$'}) return true
Commit 0e21945 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 0e21945 did not add $$ to the list of such variables in is_gv_magical_sv. So defined ${'$'} started return- ing false.
1 parent ea3b834 commit f8326b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2771,6 +2771,7 @@ Perl_is_gv_magical_sv(pTHX_ SV *const name_sv, U32 flags)
27712771
case '>':
27722772
case '\\':
27732773
case '/':
2774+
case '$':
27742775
case '|':
27752776
case '+':
27762777
case ';':

0 commit comments

Comments
 (0)