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 ?
----- Original Message ---- From: Chas. Owens <[EMAIL PROTECTED]> To: anthony brooke <[EMAIL PROTECTED]> Cc: beginner perl mailling list <beginners@perl.org> Sent: Monday, April 7, 2008 2:09:0-1 Subject: Re: Perl Serialize object as string On Sun, Apr 6, 2008 at 1:52 PM, anthony brooke <[EMAIL PROTECTED]> wrote: > Hello everyone, I need to serialize an perl object to STRING TEXT, > not scalar or file. The Storable module allow serialization to file and > scalar variable, but this is not possible for passing between the perl > and prolog program, that's why I need it to be string. I tried out the > FreezeThaw module but it couldn't serialize object successfully, or > have ever done it ? Thanks. If you don't have cyclic data you can use Data::Dumper*, but I would suggest looking at YAML::Syck* instead. * http://perldoc.perl.org/Data/Dumper.html ** http://search.cpan.org/dist/YAML-Syck/lib/YAML/Syck.pm -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. Send instant messages to your online friends http://uk.messenger.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/