Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: obj dump

by arturo (Vicar)
on Sep 24, 2001 at 17:43 UTC ( [id://114317]=note: print w/replies, xml ) Need Help??


in reply to Re: obj dump
in thread obj dump

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://114317]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-03-28 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found