with%hash_table = (@PARTS);
%hash_table = map { $_ => 1 } @PARTS;
What your code does is to use odd entries as the hash key and even entries as the value of that key. The alternative says each entry is a hash-key, having a (trivial) value of 1.
One suggestion: move the code that opens/loads <PARTS> before the loop through your database.
Good luck!
In reply to Re^8: Looping through a file
by apl
in thread Looping through a file
by baixiaohu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |