http://qs321.pair.com?node_id=380214


in reply to Using Data::Dumper in Test-Driven Development

I usually do

ok( $thing->model, $model ) or diag Dumper $thing;
which outputs to STDERR and saves one keystroke ;-)

This way you are guaranteed that your output won't interfere with the tests, even though I'm pretty certain that the Dumper output will not interfere.