Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Testing a string for a range of characters

by BoredByPolitics (Scribe)
on Jan 24, 2001 at 22:14 UTC ( #54063=note: print w/replies, xml ) Need Help??


in reply to Re: Testing a string for a range of characters
in thread Testing a string for a range of characters

Wow - that's an extremely complete writeup :-)

Due to your use of rand 256 to generate the characters, your benchmark is heavily weighted towards non-matching instances. I've split each sub into matching and non-matching versions (comp required three non-matching versions).

I used rand to try and avoid the optimisation that I've read Perl will do to what is in effect a literal; but your method seems to take that into account.

It never ceases to amaze me how much you can learn here :-)

Pete

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2022-01-19 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?