in reply to print data with matching id from two different files
As I see it, there are two things that you need to do to solve a problem like this for yourself:
You can check out the Perl debugger, and in particular: Stepping through code which, for the code you are writing should really be all you need. Doing those two things will save you lot of time and effort when it comes to answering questions like this.
One other thing you might consider doing as you are starting out: Literally write everything you need to do to get from what you have (two files with data), to what you want to get out at the end of your program. I have been programming for years (not that I am all that great at it) and still find that I save myself a lot of confusion by taking the time to write it out in plain language first. Often times it helps me predict ahead of time exactly where I am likely to have questions, thus allowing me to do some research ahead of time, so that by the time I get to coding, I have already addressed those areas with which I am unskilled or unfamiliar
Hope that is useful to you......the majority is always wrong, and always the last to know about it...
A solution is nothing more than a clearly stated problem...
|
---|