Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Data::Dumper(::Simple) is your friend

by tlm (Prior)
on Jul 06, 2005 at 03:42 UTC ( [id://472672]=note: print w/replies, xml ) Need Help??


in reply to Data::Dumper(::Simple) is your friend

Despite a clunkier interface, I prefer the output produced by Dumpvalue over Data::Dumper's.

use strict; use warnings; use Dumpvalue; use Data::Dumper; my $hashref = +{ eenie => 1, meenie => 2, minie => 3, moe => 4 }; print "With Data::Dumper:\n", Dumper( $hashref ), "\n\n"; print "With Dumpvalue:\n"; Dumpvalue->new->dumpValue( $hashref ); print "\n"; __END__ With Data::Dumper: $VAR1 = { 'moe' => 4, 'eenie' => 1, 'minie' => 3, 'meenie' => 2 }; With Dumpvalue: 'eenie' => 1 'meenie' => 2 'minie' => 3 'moe' => 4

the lowliest monk

Replies are listed 'Best First'.
Re^2: Data::Dumper(::Simple) is your friend
by demerphq (Chancellor) on Jul 06, 2005 at 08:24 UTC
    use Data::Dump::Streamer; my $hashref = { eenie => 1, meenie => 2, minie => 3, moe => 4 }; print "With Data::Dump::Streamer:\n", Dump( $hashref ), "\n\n"; __END__ With Data::Dump::Streamer: $HASH1 = { eenie => 1, meenie => 2, minie => 3, moe => 4 };
    ---
    $world=~s/war/peace/g

Re^2: Data::Dumper(::Simple) is your friend
by BrowserUk (Patriarch) on Jul 06, 2005 at 06:33 UTC

    With Data::Dumper::SLC { eenie => '1', meenie => '2', minie => '3', moe => '4', }

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found