Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: how to compare column 1 to column 2 and vice versa from multiple rows.

by BhariD (Sexton)
on Oct 02, 2009 at 18:46 UTC ( #798923=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( $seen{ join ' ', sort @F }++ ) {
        $uniq{$F[0]}++;
    ...
    END {
        print for keys %uniq;
    }
    
  2. or download this
    my @F = <DATA>;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-07-10 21:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (216 votes), past polls