Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: You don't always have to use regexes

by Anonymous Monk
on Feb 24, 2005 at 02:59 UTC ( [id://433934]=note: print w/replies, xml ) Need Help??


in reply to Re^2: You don't always have to use regexes
in thread You don't always have to use regexes

You Benchmark is significantly flawed for the question asked. The OR (original replier) wanted to compare  index(lc $value,"true") with  $value =~ /true/i; In addition, to fairly benchmark one should try multiple test case (set  $value to "true", a short string, and a longer string in your test, and in a fair test, set it to: 'true', 'ashortstringthentrue', 'averylongstringthentrue', and different size strings without 'true' in them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://433934]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-18 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found