> I use Text::Differences for this, as it will show which lines are > different, rather than just the first 50 characters. Much > easier for me to diagnose problems.
Something I put at the top of a lot of my test scripts is: if(eval "require Test::Differences; 1") { no warnings 'redefine'; *is_deeply = \&Test::Differences::eq_or_diff; } I think (BICBW) that it was Richard Clamp who first suggested this idiom. N