summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorPhilip Newton <pne@cpan.org>2002-04-17 21:48:09 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-04-17 20:24:48 +0000
commitda6eedaa8c807f963938cbb14de34b87260db473 (patch)
tree2f1987e1d64455be7ec146e86b9a8690c84adc46 /toke.c
parentf3e4a94eca8091ef3e896dc377f9a1a97616795c (diff)
downloadperl-da6eedaa8c807f963938cbb14de34b87260db473.tar.gz
@:foo?
Message-ID: <v6drbu0mkupaklru4efcq40lv7d4vajdp1@4ax.com> p4raw-id: //depot/perl@15979
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 5571500b59..2e862b47f2 100644
--- a/toke.c
+++ b/toke.c
@@ -1181,7 +1181,7 @@ S_sublex_done(pTHX)
It stops processing as soon as it finds an embedded $ or @ variable
and leaves it to the caller to work out what's going on.
- @ in pattern could be: @foo, @{foo}, @$foo, @'foo, @:foo.
+ @ in pattern could be: @foo, @{foo}, @$foo, @'foo, @::foo.
$ in pattern could be $foo or could be tail anchor. Assumption:
it's a tail anchor if $ is the last thing in the string, or if it's
@@ -1356,7 +1356,7 @@ S_scan_const(pTHX_ char *start)
}
/* check for embedded arrays
- (@foo, @:foo, @'foo, @{foo}, @$foo, @+, @-)
+ (@foo, @::foo, @'foo, @{foo}, @$foo, @+, @-)
*/
else if (*s == '@' && s[1]
&& (isALNUM_lazy_if(s+1,UTF) || strchr(":'{$+-", s[1])))