in reply to Re^2: Question on file compare
in thread Question on file compare
Add: use Data::Dumper; at the top of the code. Then before the F1 loop, print Dumper \%$File2Parts; That will show you what is actually in the hash table. Data::Dumper is a "core module" meaning that it is already "pre-installed" in Perl. Look for spaces or other characters that would cause the hash key from file2 to not compare with the PartNumber from file1.
Of course use some abbreviated files for testing otherwise you will get a lot of output that is not helpful!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Question on file compare
by sureshsmr (Initiate) on Mar 14, 2012 at 15:58 UTC |