in reply to Re: swapping values between two files
in thread swapping values between two files

Hi
Thanks for your quick reply, but adding chomp after the declaration of each while loop has the same effect as adding after $_ =~ tr/\n/ /; after the values have been swapped.
In that is removes all of the carriage returns and I end up with a continious stream of text.
However your suggestion pointed the way to the solution, I've added chomp after the declaration of the second while loop and that appears to have fixed my problem.
A thousands thanks
  • Comment on Re^2: swapping values between two files

Replies are listed 'Best First'.
Re^3: swapping values between two files
by ikegami (Patriarch) on Feb 18, 2005 at 21:05 UTC
    In that is removes all of the carriage returns and I end up with a continious stream of text.

    yes, which is why you also have to change the print to print OUTFILE4 $_, "\n";