in reply to Writing frozen objects to a browser?

You can ensure the serialized data only has printable characters in it by unpacking it into hex like so:
my $foo = unpack('H*', freeze($obj));
Then you can thaw it out like this:
my $obj = thaw(pack('H*', $foo));

-Matt

Replies are listed 'Best First'.
RE: RE: Writing frozen objects to a browser?
by kenpo (Initiate) on Sep 04, 2000 at 23:34 UTC
    Looks like the serialized object is getting horked during the pack/unpack. I think I shall need to dig into Storable to see what exactly is happening.
    Any thoughts?
    Mon Sep 4 12:25:35 2000 index_new.pcgi: Storable binary image v111.205 more recent
    than I am (v2.2) at ./blib/lib/Storable.pm (autosplit into
    ./blib/lib/auto/Storable/thaw.al) line 222, at
    /usr/SD/docs/SERVICE/ReArch/index_new.pcgi line 424