No such thing as a small change | |
PerlMonks |
Re^2: Substring comparisonby trammell (Priest) |
on May 01, 2012 at 15:16 UTC ( [id://968280]=note: print w/replies, xml ) | Need Help?? |
Index returns 0 if the match is at the front of the string, i.e. string offset 0.
perl -le 'print index("foobar","foo")'
In Section
Seekers of Perl Wisdom
|
|