The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Storable::AMF - Perl extension for serialize/deserialize AMF date

SYNOPSIS

  use Storable::AMF qw(freeze thaw);

  store \%table, 'file';
  $hashref = retrieve('file');

  use Storable::AMF qw(nstore store_fd nstore_fd freeze thaw dclone);

  # Network order: always store in network order 
  # and nstore and store are synonyms 

  nstore \%table, 'file';
  $hashref = retrieve('file');  # There is NO nretrieve()

  # Serializing to memory
  $serialized = freeze \%table;
  %table_clone = %{ thaw($serialized) };
  
  # Advisory locking
  use Storable::AMF qw(lock_store lock_nstore lock_retrieve)
  lock_store \%table, 'file';
  lock_nstore \%table, 'file';
  $hashref = lock_retrieve('file');

DESCRIPTION

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 alwaye)

EXPORT

None by default.

METHOD =head2 freeze($obj) Serialize perl object($obj) to AMF, and return AMF data

thaw($amf0) Deserialize AMF data to perl object, and return the perl object

NOTICE

Storable::AMF is currently is very alpha development stage/ This current version is not support AMF3.

LIMITATION

At current moment freeze not support for nested reference in object and utf8 string not marked by default. It not serialize tied variables.

SEE ALSO

Data::AMF, Storable

AUTHOR

Anatoliy Grishaev, <grian at cpan dot org>

COPYRIGHT AND LICENSE

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.8.8 or, at your option, any later version of Perl 5 you may have available.