diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-13 18:40:48 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-13 18:40:48 +0000 |
commit | 5d1d4326e46d23745bc8205fab794e804711b784 (patch) | |
tree | 099cc8bdc21d9e9bf0c29db6ccb4ed893edec626 /toke.c | |
parent | 9f07fdcd4d463e2090de7661b6a313c8ecc5278b (diff) | |
download | perl-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |