Data-Plist
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Data/Plist.pm view on Meta::CPAN
Creates a new Data::Plist object. Generally, you will not need to
call this directly, as Plists are generally created by
L<Data::Plist::Reader> classes, and are not needed in serialization
when using L<Data::Plist::Writer> classes.
=cut
sub new {
my $class = shift;
return bless { data => undef, @_ } => $class;
}
=head2 collapse $data
Takes an array of serialized data C<$data>. Recursively
returns the actual data, without the datatype labels.
=cut
sub collapse {
lib/Data/Plist/Reader.pm view on Meta::CPAN
=head1 METHODS
=head2 new
Create a new reader.
=cut
sub new {
my $class = shift;
return bless {} => $class;
}
=head2 open_string $content
Takes binary data C<$content> and reads it into a
filehandle. Then passes that filehandle to L</open_fh>.
=cut
sub open_string {
lib/Data/Plist/Writer.pm view on Meta::CPAN
assumed that data being passed in will be perl data
structures that need to be serialized. Users may set it to
0 when creating a writer if they wish to use preserialized
data.
=cut
sub new {
my $class = shift;
my %args = ( serialize => 1, @_ );
return bless \%args => $class;
}
=head2 write $filehandle, $data
=head2 write $filename, $data
=head2 write $data
Takes a perl data structure C<$data> and writes to the given
filehandle C<$filehandle>, or filename C<$filename>. If only the
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.203 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )