[perl #88138] ' is not equivalent to :: before a null
authorFather Chrysostomos <sprout@cpan.org>
Sat, 4 Jun 2011 04:34:45 +0000 (21:34 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 4 Jun 2011 04:34:45 +0000 (21:34 -0700)
commit46c0ec201322d8cfdb79ed78e70ba0487858f2a9
treee1f7e659ec57dd0d2b2acbef363bcd2ae0c433a2
parent767eda446920b18c91ad2d91822428141c99301f
[perl #88138] ' is not equivalent to :: before a null

' is usually equivalent to :: in a symbol name. At the *end* of a
symbol name (as in $'), it’s not equivalent. (That’s a feature.)
Perl_gv_fetchpvn_flags was checking for the end by saying
if(next character), which returns false for a null. It should be
checking the length, which it was already doing for ::, and which
this commit makes it do.
gv.c
t/op/stash.t