Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by adrianh (Chancellor)
on Jul 20, 2005 at 11:05 UTC ( [id://476462]=note: print w/replies, xml ) Need Help??


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

Well then, how about using Test::More::is_deeply() sometimes, instead?

It's often useful, but you do have to bear in mind that it only looks at the basic structure of the objects, and ignores many things, e.g.:

is_deeply( {}, bless({}, 'Foo'), 'is_deeply ignores blessed' );

will pass. Test::Deep is a useful module if you're interested in some of the detail.

  • Comment on Re: Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!
  • Download Code

Log In?
Username:
Password:

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

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

    No recent polls found