Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Finding duplicate words in a paragraph

by japhy (Canon)
on Jun 05, 2006 at 13:43 UTC ( [id://553596]=note: print w/replies, xml ) Need Help??


in reply to Finding duplicate words in a paragraph

It looks like you mean you want to find a word that is followed by itself in a paragraph, right? If so, I think the only real error in your code is $/ = " ", which should be $/ = "". That is no, the empty string, not a string with a space in it.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-24 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found