in reply to Re^3: how to compare column 1 to column 2 and vice versa from multiple rows.
in thread how to compare column 1 to column 2 and vice versa from multiple rows.
Could you please tell me what each line is doing in this code.
code: Thanks to ccnif ( $seen{ join ' ', sort @F }++ ) { $uniq{$F[0]}++; $uniq{$F[1]}++; } END { print for keys %uniq; }
Also, before I execute this code I fill the @F from the file input right?
my @F = <DATA>;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: how to compare column 1 to column 2 and vice versa from multiple rows.
by ccn (Vicar) on Oct 02, 2009 at 20:44 UTC |
In Section
Seekers of Perl Wisdom