Util::BLOB - Simple interface to de/serialise perl references with Storable


NAME

Util::BLOB - Simple interface to de/serialise perl references with Storable


SYNOPSIS

        use Util::BLOB;
        my $blobbed = serialise( $blob );
        my $blob = deserialise( $blobbed );
        print "is a BLOB"
                if(isBLOB($blobbed));


DESCRIPTION

Simple perl object/reference de/searialisation using Storable. See RDFStore::Literal(3) and RDFStore::Resource(3)


METHODS

serialise ( BLOB )
Freeze the given perl object or reference to a string; the string is HEX packed to safely be converted to UTF-8 in RDFStore(3).

deserialise ( BLOB )
Thaw the given string to a perl object or reference; the string is HEX unpacked before being thawed.

isBLOB ( CONTENT )
Return true if the CONTENT passed to it is actually a BLOB (perl object reference or frozen string)


SEE ALSO

RDFStore::Literal(3) Storable(3) RDFStore::Resource(3)


AUTHOR

        Alberto Reggiori <areggiori@webweaving.org>

 Util::BLOB - Simple interface to de/serialise perl references with Storable