On 6/6/05, Nupur Pande wrote: > The interesting thing is "chomp"ing twice did not > seem to help either.
Of course not. "chomp" removes "$/" only, and unless you changed it, it is equal (on Linux) to "\n". Read "perldoc -f chomp" (http://perldoc.perl.org/functions/chomp.html). As an experiment, try doing: while (defined(my $line = <Filehandle1>)) { local $/ = "\r\n"; chomp $line; # rest of code... } HTH, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>