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

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

by ccn (Vicar)
on Oct 02, 2009 at 06:13 UTC ( #798789=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    #!/usr/bin/perl -lan
    # Usage: genes.txt
    END {
        print for keys %uniq;
  2. or download this
    Linux version:
    perl -lane '@u{@F}=() if $s{join "", sort @F}++ }{ print for keys %u' 
    Windows version:
    perl -lane "@u{@F}=() if $s{join '', sort @F}++ }{ print for keys %u" 

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2016-02-12 13:13 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (397 votes), past polls