Perl: the Markov chain saw | |
PerlMonks |
Re: how to compare column 1 to column 2 and vice versa from multiple rows.by ccn (Vicar) |
on Sep 30, 2009 at 17:43 UTC ( [id://798414]=note: print w/replies, xml ) | Need Help?? |
Something like this:
Use a hash to check for duplicates. Compose a key for the hash in such a way that rows having similar columns give same keys. Update: Missed ++ has been added.
In Section
Seekers of Perl Wisdom
|
|