On Tue, 10 Aug 2004 [EMAIL PROTECTED] wrote:

So Data::Dumper shows me a structure of any scaler? Could you show me an example?

Data::Dumper is a tool for showing the structure of *any* data.

As is often the case, the perldoc has some of the best documentation:

    perldoc Data::Dumper

It starts out with this:

    NAME
       Data::Dumper - stringified perl data structures, suitable
       for both printing and "eval"

    SYNOPSIS
           use Data::Dumper;

           # simple procedural interface
           print Dumper($foo, $bar);

           # extended usage with names
           print Data::Dumper->Dump([$foo, $bar], [qw(foo *ary)]);

           # configuration variables
           {
             local $Data::Dumper::Purity = 1;
             eval Data::Dumper->Dump([$foo, $bar], [qw(foo *ary)]);
           }

           # OO usage
           $d = Data::Dumper->new([$foo, $bar], [qw(foo *ary)]);
              ...
           print $d->Dump;
              ...
           $d->Purity(1)->Terse(1)->Deepcopy(1);
           eval $d->Dump;

And goes on to describe usage details & more examples.

Good luck with it!



--
Chris Devers

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to