It's not really perfect, but this worked for me: Htmlify code with differences.
In reply to Re: Using GNU diff in a PERL Script by ambrus in thread Using GNU diff in a PERL Script by Anonymous Monk