Data::PropertyList

Data::PropertyList is a Perl module that can convert arbitrary objects to/from strings.
Download

Data::PropertyList Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Evolution Online Systems, Inc.
  • Publisher web site:
  • http://search.cpan.org/~evo/Data-PropertyList-1998.1217/lib/Data/PropertyList.pm

Data::PropertyList Tags


Data::PropertyList Description

Data::PropertyList is a Perl module that can convert arbitrary objects to/from strings. Data::PropertyList is a Perl module that can convert arbitrary objects to/from strings.SYNOPSIS use Data::PropertyList qw(astext fromtext); $hash_ref = { 'items' => , 'key' => 'value' }; $string = astext($hash_ref); # ... $hash_ref = fromtext($string); print $hash_ref->{'items'}; $array_ref = ; $string = astext($array_ref); # ... $array_ref = fromtext($string, '-array'=>1 ); print $array_ref->{'key'};Data::Propertylist provides functions that turn data structures with nested references into NeXT's Property List text format and back again.You may find this useful for saving and loading application information in text files, or perhaps for generating error messages while debugging.astext( $reference ) : $propertylist_string;Writes out a nested Perl data structure in NeXT property list format.fromtext( $propertylist_string ) : $hash_ref fromtext( $propertylist_string, '-array'=>1 ) : $array_refReconstructs a Perl data structure of nested references and scalars from a NeXT property list. Use the -array flag if the string encodes an array rather than a hash. Requirements: · Perl


Data::PropertyList Related Software