Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: how to find the unique lines in a file?

by patric (Acolyte)
on Apr 22, 2009 at 09:38 UTC ( [id://759222]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (@aListMembers) {
        #we only care if its longer than what we already have
    ...
          my $aList = $hLists{$kLists};
          next if ($iCount <= scalar(@$aList));
        }
    
  2. or download this
    mylist_12 sublist153  sublist_34 sublist_123 sublist_345 sublist_245
    mylist_1  sublist_153  sublist_87  sublist_876  sublist_78
    ...
    mylist_9  sublist_56 
    
    In the above result, sublist_153 is present in 2 lines.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-29 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found