$owo = "c:/scripts/owo.txt"; open(FILE,"<$owo") || die $!; # read file my @list = keys %{{map{$_,1} <FILE>}}; # remove duplicates close(FILE); open(FILE,">$owo") || die $!; # write file foreach (@list) { chomp; print FILE "$_\n"; } close(FILE);
In reply to Re: Deleting Duplicates in an array
by Davious
in thread Deleting Duplicates in an array
by blacksmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |