in reply to Loop through 2 files in parallel
http://docstore.mik.ua/orelly/perl/prog3/ch04_04.htm
4.4.4. Loop Control
I think that's how the whole "next" idea works. But what I really want is not that. I don't want it to start loop B over every time. I want it to hold its place in loop B. Can I do that?Start loop A, get a line. Start loop B, get a line. B doesn't match A so print a blank line. Go to the next iteration of loop A. Start loop B, get a line. Now A and B match, so print out B. Go to the next iteration of loop A. Start loop B, get a line.
|
|---|