http://www.perlmonks.org?node_id=476666


in reply to Re^2: Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!
in thread Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!

TS is the strictest possible comparison that doesn't involve comparing reference addresses, so if $x=[];$y=[] then TS will say that [$x,$x] is not the same as [$x,$y] because one is an array with 2 refs to 1 array and the other has refs to 2 different arrays. This is a valid difference. TD ignores this difference. TD also lets you do something a little bit like regular expressions for data structures.