Re: please explain lazy leftop gotcha a bit more
[email protected] (Marcel Grunauer)
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <20011102095855.MFGW14739.viefep12-int.chello.at@localhost> |
Hi Terrence,
[ sorry for bringing this back to recdescent but maybe Damian
has some input on this ]
On Friday, November 2, 2001, at 10:50 AM, Terrence Brannon wrote:
> list: token1 element(s /,/) token2
[...]
> that is really what you need:
>
> $item{__DIRECTIVE1__}
>
> It actually is documented under @item and %item
Well, it only says that __DIRECTIVEn__ exists. But it doesn't
document the following explicitly enough (for my taste):
Using $item{element} when your rule says 'element(s)' gives you
an array reference, but when your rule says 'element(s /,/)' you
only get the last element. The two are visually close enough for
me to expect them to return the same thing.
Unless it *is* documented and I just can't find it.
Marcel
--
Aspect-Oriented Perl http://codewerk.unixbeard.net/aspects/
cpan> install Aspect