Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Benchmarking "Are all these characters in this sentence?"

by RMGir (Prior)
on Sep 05, 2008 at 17:22 UTC ( #709347=note: print w/ replies, xml ) Need Help??


in reply to Re: Benchmarking "Are all these characters in this sentence?"
in thread Benchmarking "Are all these characters in this sentence?"

You're checking whether only the wantedchars are used.

That wouldn't work. The question isn't whether the sentence consists ONLY of characters in the wantedchars, just whether or not ALL the wantedchars are present.


Mike


Comment on Re^2: Benchmarking "Are all these characters in this sentence?"
Re^3: Benchmarking "Are all these characters in this sentence?"
by martin (Pilgrim) on Sep 08, 2008 at 09:43 UTC
    You're checking whether only the wantedchars are used.

    Not quite. It's supposed to be the other way round. The idea is to check whether $wantedchars only contains characters from $sentence.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-11-27 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (186 votes), past polls