Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Words in Wordsby Lotus1 (Vicar) |
on Sep 30, 2011 at 20:44 UTC ( [id://928913]=note: print w/replies, xml ) | Need Help?? |
is index faster than regexp for fixed text token? makes it look like index doesn't help much but I just took a quick look at that long discussion. My guess is the comparison with -1 after every index eats up any savings in search time. Plus the regex looks simpler. (update: simpler to Perl programmers anyway ;)
In Section
Seekers of Perl Wisdom
|
|