Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!

by fergal (Chaplain)
on Jul 21, 2005 at 00:12 UTC ( #476666=note: print w/replies, xml ) Need Help??


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.
  • Comment on Re^3: Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://476666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2019-08-25 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?