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

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.