in reply to Re^2: Perl delete function
in thread Perl delete function

That is why my code tested for eof (end of file) for both file handles. To complete the validation, verify that it reached the eof for both handles after the while loop.

*edited my code to demonstrate*

Replies are listed 'Best First'.
Re^4: Perl delete function
by annel (Novice) on Dec 23, 2013 at 07:45 UTC
    Thanks for tips. It works fine! I never knew about eof before until now. New thing to pick up.