Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: testing number of occurrences in a word

by BrowserUk (Patriarch)
on Sep 19, 2006 at 14:21 UTC ( [id://573733]=note: print w/replies, xml ) Need Help??


in reply to testing number of occurrences in a word

Update: Added my %h to prevent false negatives. Thanks to Corion.

This'll really impress teach :)

perl -e"my %h;" -nle "++$h{$_}for split'';print'is ',(grep{1<$_}values%h)?'not ':'','an iso +gram'" fred is an isogram bill is not an isogram Terminating on signal SIGINT(2)

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found