Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Perl delete function

by annel (Novice)
on Dec 23, 2013 at 07:10 UTC ( [id://1068150]=note: print w/replies, xml ) Need Help??

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


Yes, I wish to compare it line by line. But there is a tricky part. What if Text1 contains only 1 line and Text2 contains 2 lines? Any suggestion would be much appreciated.

Replies are listed 'Best First'.
Re^3: Perl delete function
by wind (Priest) on Dec 23, 2013 at 07:36 UTC

    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*

      Thanks for tips. It works fine! I never knew about eof before until now. New thing to pick up.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1068150]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 13:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found