Don't ask to ask, just ask | |
PerlMonks |
Re: Loop through 2 files in parallelby AndyZaft (Hermit) |
on Nov 10, 2010 at 20:04 UTC ( [id://870671]=note: print w/replies, xml ) | Need Help?? |
could be one solution. If it was me however, I would probably read the smaller file into an array or another structure and just go through the other one, instead of reading lines from the second loop as many times as the amount of lines the first one has.
In Section
Seekers of Perl Wisdom
|
|