in reply to hash or nest loop
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash or nest loop
by Limbic~Region (Chancellor) on Sep 20, 2004 at 14:49 UTC | |
|
Re^2: hash or nest loop
by Anonymous Monk on Sep 20, 2004 at 14:43 UTC |