Front page | perl.modules |
Postings from April 2001
Request for Data::Denter
From:
Brian Ingerson
Date:
April 27, 2001 01:19
Subject:
Request for Data::Denter
Message ID:
3AE92B37.9E305633@activestate.com
Would you please add Data::Denter to the modules list?
Name DSLI Description
------------- ---- --------------------------------------------
Data::Denter adph An alternative to Data::Dumper and Storable.
From the README:
Data::Denter - An alternative to Data::Dumper and Storable.
INTRODUCTION:
Data::Denter is yet another Perl data serializer/deserializer. It
formats nested data structures in an indented fashion. It is optimized
for human readability/editability, safe deserialization, and
(eventually) speed.
NOTE: It may be optimized for Python programmers too, but please don't
hold that against me ;)
It exports 2 functions: C<Indent()> and C<Undent()> for serialization
and deserialization respectively. It handles all of the commonly
serializable Perl data types, including: scalars, hash refs, array refs,
scalar refs, ref refs, undef, and blessed references. It can even
properly handle circular and duplicate references.
SAMPLE:
use Data::Denter;
print Indent bless {foo => 42,
bar => [ 'happy', undef, [], 'sad' ],
baz => "Bozo the Clown",
}, "Small::Example";
yields:
%Small::Example
baz => Bozo the Clown
bar => @
happy
?
@
sad
foo => 42
INFORMATION:
For more information on Data::Denter, see 'perldoc Data::Denter'.
Please send questions and comments to "Brian Ingerson" <INGY@cpan.org>
Copyright (c) 2001, Brian Ingerson. All Rights Reserved.
-
Request for Data::Denter
by Brian Ingerson