Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Testing a string for a range of charactersby BoredByPolitics (Scribe) |
on Jan 25, 2001 at 14:28 UTC ( [id://54232]=note: print w/replies, xml ) | Need Help?? |
I'm at home today, with a much slower machine (P166 64Mb, linux 2.2.18pre21, Perl 5.005_03), so I've reduced the number of iterations to a million.
These benchmarks are also with the compl routine checking the length() of the test character first, and with the regex fixed -
So, faster than the regex, but still not as fast as the exist() method. Thanks for the suggestion though :-) Pete
In Section
Seekers of Perl Wisdom
|
|