in reply to diff vs diff -y

This doesn't sound like a Perl question, diff is a unix tool.

Maybe you should provide some output and intended input to make it clearer for us?

Kind of an SSCCE?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice