On Mon, 07 Aug 2000, Damian Conway wrote:
> > > $last = index $string, $substring, -1, -1; # last occurence
> >
> > Err... shouldn't that be
> >
> > $last = index $string, $substring, 0, -1 # last occurrence
> > $first = index $string, $substring, -1, -1 # first occurrence found
> > # in a perverse way
> >
> > Or am I seeing double negatives where I shouldn't?
>
> No. You're missing the fact that the third argument of rindex specifies
> the last character at which the match can be found (as opposed to index's
> third arg which specifies the *first* character from which to search)
Is this one of those "Magic Eye" things where if you stare at it long
enough, you'll eventually see the picture?
..
..
..
..
..
.. Oh, now I get it.
I understand now, but that certainly wasn't my first, second, or third
interpretation of it.
--
Bryan C. Warnock
([EMAIL PROTECTED])