summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-10-13 18:40:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-13 18:40:48 +0000
commit5d1d4326e46d23745bc8205fab794e804711b784 (patch)
tree099cc8bdc21d9e9bf0c29db6ccb4ed893edec626 /toke.c
parent9f07fdcd4d463e2090de7661b6a313c8ecc5278b (diff)
downloadperl-5d1d4326e46d23745bc8205fab794e804711b784.tar.gz
Allow @+ and @- to be doublequoted, from Simon Cozens.
p4raw-id: //depot/perl@7224
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 4b65d6244b..b3c667407c 100644
--- a/toke.c
+++ b/toke.c
@@ -1305,9 +1305,11 @@ S_scan_const(pTHX_ char *start)
*d++ = *s++;
}
- /* check for embedded arrays (@foo, @:foo, @'foo, @{foo}, @$foo) */
+ /* check for embedded arrays
+ (@foo, @:foo, @'foo, @{foo}, @$foo, @+, @-)
+ */
else if (*s == '@' && s[1]
- && (isALNUM_lazy_if(s+1,UTF) || strchr(":'{$", s[1])))
+ && (isALNUM_lazy_if(s+1,UTF) || strchr(":'{$+-", s[1])))
break;
/* check for embedded scalars. only stop if we're sure it's a