Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: obj dump

by Anonymous Monk
on Sep 24, 2001 at 15:07 UTC ( #114281=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: obj dump
in thread obj dump

I was hoping someone here could explain what this does.. I only know it's a obj dumper, but I don't know much else and I was trying to figure out how it works..


Comment on Re: obj dump
Re: Re: obj dump
by arturo (Vicar) on Sep 24, 2001 at 17:43 UTC

    Perl comes standard with Data::Dumper, which is useful for printing out complex data structures (and even for loading them up again if you need to -- it's nice for simple configuration files). I'm afraid that the only person who could give you a definitive answer about what the code you posted does and how it works is the original author (and maybe not even that person, memory being what it is).

    Sample usage (very silly) :

    #/usr/bin/perl -w use strict; use Data::Dumper; my $obj = { foo=> [0..4], bar=>"wouldn't it be nice?", baz=>[ qw(if we were older) ], bletch=>"Then we wouldn't have to ... ummm, something +something"}; print Data::Dumper->Dump( [ $obj ]);

    Try that and take a peek at the output.

    HTH!

    perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-09-18 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (112 votes), past polls