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

Re: finding and deleting repeated lines in a file

by insensate (Hermit)
on Jun 19, 2002 at 14:16 UTC ( [id://175691]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(FILE,"peptides.txt");
    @peptides=<FILE>;
    %seen=();
    @unique=grep{! $seen{$_} ++} @peptides;
    

Log In?
Username:
Password:

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

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

      No recent polls found