Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: unique words

by AnomalousMonk (Archbishop)
on Mar 06, 2015 at 04:47 UTC ( [id://1118981]=note: print w/replies, xml ) Need Help??


in reply to unique words

c:\@Work\Perl\monks\rasy>perl -wMstrict -le "use List::MoreUtils qw(uniq); ;; my @uniques = uniq map { chomp; $_; } <>; print qq{(@uniques)}; " < words.txt (foo bar bax boff food wink wank fool zink zank)

words.txt:

foo bar foo bax boff foo foo food wink wank fool zink zank foo


Give a man a fish:  <%-(-(-(-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found