Paludis::ResumeState::Serialization::Basic - Basic & Consistent Resume-State serialization interface.
version 0.01000410
See ::Serialization for recommended usage.
::Serialization
This interface provides a very "dumb" but consistent serialization support.
ResumeData@1234(foo="bar";baz="quux";doo=c(1="baz";2="buzz";3="bizz";count="3";);borzoi=Hysterical(););
Will be deserialized as follows:
{ ResumeSpec => { type => 'class', classname => 'ResumeData', pid => '1234', parameters => [ [ 'foo', 'bar' ], [ 'baz', 'quux' ], [ 'doo', { type => 'array', parameters => [ 'baz', 'buzz', 'bizz' ], count => 3 } ], [ 'borzoi', { type => 'class', classname => 'Hysterical', parameters => [], } ], ], }, }
And giving that exact structure to serialize, will return the aforementioned serialized string.
my $string = ->serialize( $data );
my $object = ->deserialize( $content );
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2013 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Paludis::ResumeState::Serialization, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paludis::ResumeState::Serialization
CPAN shell
perl -MCPAN -e shell install Paludis::ResumeState::Serialization
For more information on module installation, please visit the detailed CPAN module installation guide.