in reply to Re^6: Need advice on checking two hashes values and keys
in thread Need advice on checking two hashes values and keys
I'm not sure I understand your problem; you might need to show what the output looks like. But if this is your actual code, one problem is that your if/else statement which does the printing is inside your while() loop that adds the French values, so it's going to print the whole thing every time it processes a line from your Italian-French file. That if/else section should be after the while loop, in its own for loop, as I showed in my last post to which you replied.
In other words, you'll have three independent loops:
None of these should be within the others.
Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Need advice on checking two hashes values and keys
by Anonymous Monk on Jun 10, 2015 at 00:15 UTC | |
by aaron_baugher (Curate) on Jun 10, 2015 at 00:37 UTC | |
by AnomalousMonk (Archbishop) on Jun 10, 2015 at 02:21 UTC | |
by Anonymous Monk on Jun 10, 2015 at 23:53 UTC | |
by perlynewby (Scribe) on Jun 11, 2015 at 19:33 UTC | |
by aaron_baugher (Curate) on Jun 11, 2015 at 20:25 UTC |