Paludis::ResumeState::Serialization - Work with resume-files generated by Paludis
version 0.01000410
use Paludis::ResumeState::Serialization; open my $fh, '<' , '/resumefile' or die; my $objects = Paludis::ResumeState::Serialization->deserialize({ content => ( do { local $/ = undef; scalar <$fh> } ), format => 'basic' }); my $content = Paludis::ResumeState::Serialization->serialize({ data => $object, format => 'basic' }); # $content should == contents of resumefile.
This class is just really a proxy serialization interface for a few of the varying back-ends.
Currently only the 'basic' back-end exists, which provides basic, but consistent serialization support.
Defers serialization to ::Basic
::Basic
my $object = ::Serialization->deserialize({ content => $string format => FormatName });
See "FormatNames"
my $string = ::Serialization->serialize({ data => $object, format => FormatName });
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.