This way, while you do have two (probably three, with the printing and all) filehandles open, you don't have to slurp any of them.# open FILE1 and FILE2 my ($f1, $f2); while (($f1 = <FILE1>) && ($f2 = <FILE2>) { # split and subtract and print with $f1 and $f2 as in other suggesti +ons. } # close all.
In reply to Re: hash or nest loop
by Jasper
in thread hash or nest loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |