Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://476666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-29 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found