On Sun, Apr 6, 2008 at 6:17 PM, Dr.Ruud <[EMAIL PROTECTED]> wrote: snip > > I need to serialize an perl object to STRING TEXT, > > not scalar > > Printing (the value of) a scalar, gives you a string. > See `perldoc -f sprintf`. snip
Unfortunately the freeze subroutine from Storable outputs a binary blob that is not particularly useful to anything but the thaw subroutine from the same module: perl -MStorable -le 'print Storable::freeze({ foo => 1, bar => 2 })' Hence the need for Data::Dumper, YAML, etc. -- 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/