<[EMAIL PROTECTED]> wrote: > > thanks John and Rob for the great enlightenment, they taught me a lot. > > I wonder why the following is wrong: > while (($in1=<IN1>) && ($in2=<IN2>)) > { > .. > }
In the special case where <FH> returns a null string (when the last record of a file is empty and has no terminating record separator) that blank record will evaluate as 'false' and prematurely exit the loop. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]