good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Finding duplicate words in a paragraphby japhy (Canon) |
on Jun 05, 2006 at 13:43 UTC ( [id://553596]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|