good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Pattern Matching Queryby blakem (Monsignor) |
on Sep 17, 2002 at 12:55 UTC ( [id://198478]=note: print w/replies, xml ) | Need Help?? |
A return value of 0 from index actually means it found the substr at position 0. An rv of -1 indicates failure. Therefore:
-Blake
In Section
Seekers of Perl Wisdom
|
|