in reply to Re: Re: Finding duplicates
in thread Finding duplicates
... $db = "textfile.txt"; open(DATA, $db) or die "cant open: $!\n"; @dat = <DATA>; close(DATA); foreach $line (@dat) { ... }
The instances of ... mark the areas where you're hoping for some help. You only care about fields 2 and 5 of each line. You either want to print any line that has already been seen, or you want to print any line that has not already been seen.... $db = "textfile.txt"; open(DATA, $db) || die "cant open: $!\n"; foreach $line (<DATA>) { ... } close(DATA);
Break down the problem further.
Again, I'm treating this like it's homework, and drawing you through the thinking process, rather than just handing you a solution. If you just want to be given code, I'm sure some other folks are happy to grant your wish.
--
[ e d @ h a l l e y . c c ]
|
|---|