Storable::AMF0 - Perl extension for serialize/deserialize AMF0 data
use Storable::AMF0 qw(freeze thaw); $amf0 = freeze($perl_object); $perl_object = thaw($amf0); # Store/retrieve to disk amf0 data use Storable::AMF0 qw(store retrieve); store $perl_object, 'file'; $restored_perl_object = retrieve 'file'; use Storable::AMF qw(nstore freeze thaw dclone); # Network order: Due to spec of AMF0 format objects (hash, arrayref) stored in network order. # and thus nstore and store are synonyms nstore \%table, 'file'; $hashref = retrieve('file'); # There is NO nretrieve() # Advisory locking use Storable::AMF qw(lock_store lock_nstore lock_retrieve) lock_store \%table, 'file'; lock_nstore \%table, 'file'; $hashref = lock_retrieve('file');
This module is (de)serializer for Adobe's AMF (Action Message Format). This is only module and it recognize only AMF data. Core function implemented in C. And some cases faster then Storable( for me always)
None by default.
Storable::AMF is currently at alpha development stage.
At current moment and with restriction of AMF0/AMF3 format referrences to scalar are not serialized, and can't/ may not serialize tied variables.
Data::AMF, Storable
Anatoliy Grishaev, <gtoly@combats.ru>
Copyright (C) 2008 by A. G. Grishaev
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Storable::AMF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Storable::AMF
CPAN shell
perl -MCPAN -e shell install Storable::AMF
For more information on module installation, please visit the detailed CPAN module installation guide.