Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?"

Replies are listed 'Best First'.
Re^3: Benchmarking "Are all these characters in this sentence?"
by martin (Friar) 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?
[LanX]: line numbering is easy to fix with # line dircetives
[LanX]: I just wrote my first source filter, without changing the source
[LanX]: :)
[LanX]: Yesterday I made B::Concise produce a nested AoH of the optree instead of text
LanX chacka!!!
[LanX]: whats the correct way to make a perlbug report for perldoc?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-04-24 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (442 votes). Check out past polls.