in reply to Re: difference between two files
in thread difference between two files

If you remove the chomp statements, you can also remove "$_, $/ for" from the print statement.

Replies are listed 'Best First'.
Re^3: difference between two files
by 2teez (Vicar) on Dec 19, 2013 at 14:48 UTC

    Yes Oooo, o yes, but don't you think one is cryptic enough with the given code already, than adding some more?
    I think it would be better to play clean a bit some of the time.
    Remove the newline character using the chomp and then re-insert when printing finally.

    hdb, on a second thought, you are right. chomp here is really not useful.
    Thanks, am updating my previous post.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me