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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/