in reply to print data with matching id from two different files
As you parse file2 you are neglecting to remove the quotes and the semi-colon, thus the key will never match.
Update: You aren't removing the leading "id " either. Are you sure those are tabs in your data?
Probably best to invoke item 2 from the Basic debugging checklist:
my ($testKey, $name) = split("\t", $_); print "DEBUG: key is '$testKey', name is '$name'\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print data with matching id from two different files
by mao9856 (Sexton) on Nov 02, 2017 at 05:53 UTC | |
by hippo (Archbishop) on Nov 02, 2017 at 09:49 UTC |