Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: testing number of occurrences in a word

by johngg (Canon)
on Sep 19, 2006 at 15:01 UTC ( [id://573745]=note: print w/replies, xml ) Need Help??


in reply to testing number of occurrences in a word

How about

print qq{$word }, $word =~ m{(.).*?\1} ? q{is not } : q{is }, qq{an isogram\n};

Cheers,

JohnGG

Update: Fixed wonky braces/parentheses, thanks tweetiepooh

Replies are listed 'Best First'.
Re^2: testing number of occurrences in a word
by tweetiepooh (Hermit) on Sep 19, 2006 at 16:03 UTC
    I like this one. I can actually read it. Some of the closing braces/parenthesis don't seem right though.
      Yes, well spotted. My excuse is I was rushing off early to play squash, hence the shonky typing. I'll fix it.

      Cheers,

      JohnGG

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found