When the code you're testing returns multiple lines, records or data structures and they're just plain wrong, an equivalent to the Unix diff utility may be just what's needed. WWW: http://search.cpan.org/dist/Test-Differences/