Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Perl Serial...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 10881 of 12261
Post > Topic >>

Re: Perl Serialize object as string

by chas.owens@[EMAIL PROTECTED] (Chas. Owens) Apr 6, 2008 at 03:44 PM

On Sun, Apr 6, 2008 at 2:33 PM, anthony brooke <esia168@[EMAIL PROTECTED]
> wrote:
> Thanks for the reply, I always thought that Dumper is used for debugging
purposes, I will look at it deeper. Btw, what you mean by cyclic data ?
snip

Data::Dumper is often used to display the contents of a data structure
during debugging for precisely the same reason you want to use it: it
produces a string representation of the data structure.  Cyclic (aka
self-referential) data structures contain one or more references to
themselves.  The simplest example would be a scalar that contains a
reference to itself:

my $s;
$s = \$s;

Data::Dumper can handle them (if they aren't too large), but it can
eat a lot of memory and cpu doing so.

-- 
Chas. Owens
wonkden.net
The most im****tant skill a programmer can have is the ability to read.
 




 2 Posts in Topic:
Re: Perl Serialize object as string
esia168@[EMAIL PROTECTED]  2008-04-06 11:33:10 
Re: Perl Serialize object as string
chas.owens@[EMAIL PROTECT  2008-04-06 15:44:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 17:54:55 CST 2008.