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

Re: remove duplicates

by blakem (Monsignor)
on Oct 11, 2002 at 07:56 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://204440]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2024-04-19 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found