Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Regex Start Anchor with variablesby japhy (Canon) |
on Oct 05, 2006 at 20:07 UTC ( [id://576582]=note: print w/replies, xml ) | Need Help?? |
I wouldn't bring /o into the equation. It makes a regex "sterile" which wouldn't be helpful if this were in a function where the strings are arguments.
You haven't provided any data for failing cases. The further the smaller string is from the beginning of the bigger string, the slower index() will be.
In Section
Seekers of Perl Wisdom
|
|