I'm a debugger newbie, so I'm not sure what "x" does... but
"pretty-printing" can be done with Data::Dumper.

use Data::Dumper;

my %hash = ( foo => 1, bar => [1,2,3,4], baz => {a => 1, b => 2} );
print Dumper \%hash

The output of Dumper will be nicely formatted Perl code to recreate the data
structure.  Some people use Dumper for debugging, and some use it for
persistence.

Rob


-----Original Message-----
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 4:22 PM
To: Beginners (E-mail)
Subject: debug function for use?


I wonder if there is a function that does what 'x %HASH' does in the
debugger? (pretty-printed data structures)


Nikola Janceski

I cannot believe that God would choose to play dice with the universe.
-- Albert Einstein (1879-1955) 


----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to