Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks,
I have tried the FAQ section, but don't seem to be getting anywhere.
I have a string that can have words or numbers, each one separated with a tab, for example:
I have tried the FAQ section, but don't seem to be getting anywhere.
I have a string that can have words or numbers, each one separated with a tab, for example:
How can I check if a string given has a word (I only check for words, not numbers) more than one time and print it?$string='LOCAL Antony 17 Antony 23 1569';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do you find duplicates in a string?
by davido (Cardinal) on Sep 21, 2006 at 16:20 UTC | |
Re: How do you find duplicates in a string?
by jdporter (Paladin) on Sep 21, 2006 at 16:27 UTC | |
Re: How do you find duplicates in a string?
by ptum (Priest) on Sep 21, 2006 at 16:30 UTC | |
by jdporter (Paladin) on Sep 21, 2006 at 16:37 UTC | |
by Anonymous Monk on Sep 21, 2006 at 16:54 UTC | |
by davido (Cardinal) on Sep 21, 2006 at 18:50 UTC | |
by mk. (Friar) on Sep 21, 2006 at 17:27 UTC | |
by jdporter (Paladin) on Sep 21, 2006 at 20:17 UTC |
Back to
Seekers of Perl Wisdom