in reply to Sorting/Cleansing a Duplicate File
Your code looks OK to me, but you don't really need this line:
in your code, the hash will remove duplicates without that.if (!exists $countries{$_})
Concerning your other question, this is not exactly a code checker, but the use of the:
pragma will definitely help you finding a number of common errors and possibly dangerous or deprecated constructs.use warnings;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting/Cleansing a Duplicate File
by perlron (Pilgrim) on Oct 25, 2014 at 14:43 UTC | |
by Laurent_R (Canon) on Oct 25, 2014 at 15:21 UTC |