Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: remove duplicates

by blakem (Monsignor)
on Oct 11, 2002 at 07:56 UTC ( #204440=note: print w/replies, xml ) Need Help??


in reply to remove duplicates

How about:
1 while $text =~ s/(\b(\w+)\b.*)\b\2\b\s?/$1/s;

-Blake

Replies are listed 'Best First'.
Re: Re: remove duplicates
by cruelty (Novice) on Oct 11, 2002 at 08:06 UTC
    absolutely brilliant !

    Thanks.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2019-08-22 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?