Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re3: Removing repeated words

by blakem (Monsignor)
on Sep 20, 2002 at 15:23 UTC ( #199507=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    % perl -lane 'print grep !$s{$_}++, @F'
    one two two three
    ...
    % perl -lane '$,=$"; print grep !$s{$_}++, @F'
    one two two three
    one two theee
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2020-07-03 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?