Here is my code...how do I make it ignore case so that it will get all duplicates?
open (IN, 'P:\Directory\AFile.txt');
open (OUT,'>P:\Directory\BFile.txt');
my %hTmp;
while (my $Line5 = <IN>) {
print OUT $Line5 unless ($hTmp{$Line5}++);
}
close (IN); close (OUT);
open (IN, 'P:\Directory\AFile.txt');
open (OUT,'>P:\Directory\BFile.txt');
my %hTmp;
while (my $Line5 = <IN>) {
print OUT $Line5 unless ($hTmp{$Line5}++);
}
close (IN); close (OUT);