--- Compress-LZF/LZF.pm 2001/09/27 19:51:24 1.2 +++ Compress-LZF/LZF.pm 2002/09/05 04:44:55 1.10 @@ -51,6 +51,8 @@ Often there is the need to serialize data into a string. This function does that, by using the Storable module. It does the following transforms: + undef (the perl undefined value) + => a special cookie (undef'ness is being preserved) IV, NV, PV (i.e. a _plain_ perl scalar): => stays as is when it contains normal text/numbers => gets serialized into a string @@ -58,11 +60,9 @@ => data structure is freeze'd into a string. That is, it tries to leave "normal", human-readable data untouched but -still serializes complex data structures into strings. - -The idea of all these C functions is to keep readability as high -as possible, and in cases readability can't be helped anyways, it tries to -compress the string. +still serializes complex data structures into strings. The idea is to keep +readability as high as possible, and in cases readability can't be helped +anyways, it tries to compress the string. The C functions will enlarge the original data one byte at most and will only load the Storable method when neccessary. @@ -83,6 +83,12 @@ Recreate the original object from it's serialized representation. This function automatically detects all the different sfreeze formats. +=head2 Compress::LZF::set_serializer $package, $freeze, $store + +Set the serialize module and functions to use. The default is "Storable", +"Storable::mstore" and "Storable::mretrieve", which should be fine for +most purposes. + =head1 SEE ALSO Other Compress::* modules, especially Compress::LZV1 (an older, less @@ -105,7 +111,7 @@ require Exporter; require DynaLoader; -$VERSION = 0.1; +$VERSION = 0.1044; @ISA = qw/Exporter DynaLoader/; %EXPORT_TAGS = ( freeze => [qw(sfreeze sfreeze_cr sfreeze_c sthaw)],