Think about Loose Coupling | |
PerlMonks |
Re^2: You don't always have to use regexesby holli (Abbot) |
on Feb 23, 2005 at 16:39 UTC ( [id://433753]=note: print w/replies, xml ) | Need Help?? |
I benchmarked this and it yields an interesting result. index() is (a bit) faster than a regex. If itīs used in combination with lc(), as in your example, the regex with the i-modifier is faster.
Update: Ack. I really need to learn to type faster. holli, /regexed monk/
In Section
Meditations
|
|