summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-08-29 10:47:31 +0200
committerNicholas Clark <nick@ccl4.org>2013-08-29 10:51:18 +0200
commit66230c862b0c3d1a8bbb014cc747d938d0e90149 (patch)
tree6ff8d3370898ab929ea2e565cbaae959467672a7 /gv.c
parentb8f07b9f533b110a924514a9e3dd9017a224fd36 (diff)
downloadperl-66230c862b0c3d1a8bbb014cc747d938d0e90149.tar.gz
${^MPEN} had been treated as a synonym of ${^MATCH} due to a missing break;
A missing break; in Perl_gv_fetchpvn_flags() meant that the variable ${^MPEN} had been behaving as a synonym of ${^MATCH}. Adding the break makes ${^MPEN} behave like all other unused multi-character control character variable.
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 5702e5e9a7..d3527aadef 100644
--- a/gv.c
+++ b/gv.c
@@ -1823,6 +1823,7 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
case '\015': /* $^MATCH */
if (strEQ(name2, "ATCH"))
goto magicalize;
+ break;
case '\017': /* $^OPEN */
if (strEQ(name2, "PEN"))
goto magicalize;