Data::Alias is a module that allows you to apply "aliasing semantics"
to a section of code, causing aliases to be made wherever Perl would
normally make copies instead. You can use this to improve efficiency
and readability, when compared to using references.
Hold Data Set To Calculate Average
This module implements the semantics for perl6-style variable binding,
as well as subroutine call argument passing and binding, in Perl 5.
Convert from Perl Data Structure to ClearSilver HDF
Data::Clone does data cloning, i.e. copies things recursively. This is smart so
that it works with not only non-blessed references, but also with blessed
references (i.e. objects). When clone() finds an object, it calls a clone method
of the object if the object has a clone, otherwise it makes a surface copy of
the object. That is, this module does polymorphic data cloning.
Although there are several modules on CPAN which can clone data, this module has
a different cloning policy from almost all of them. See "Cloning policy" and
"Comparison to other cloning modules" [1] for details.
[1] http://search.cpan.org/dist/Data-Clone/lib/Data/Clone.pm
Compare two perl data structures recursively. Returns 0 if the
structures differ, else returns 1.
A data domain is a description of a set of values, either scalar or structured
(arrays or hashes). The description can include many constraints, like minimal
or maximal values, regular expressions, required fields, forbidden fields, and
also contextual dependencies. From that description, one can then invoke the
domain's inspect method to check if a given value belongs to it or not. In case
of mismatch, a structured set of error messages is returned.
The motivation for writing this package was to be able to express in a compact
way some possibly complex constraints about structured data. Typically the data
is a Perl tree (nested hashrefs or arrayrefs) that may come from XML, JSON, from
a database through DBIx::DataModel, or from postprocessing an HTML form through
CGI::Expand. Data::Domain is a kind of tree parser on that structure, with some
facilities for dealing with dependencies within the structure, and with several
options to finely tune the error messages returned to the user.
Converts a data structure into a sequence of perl statements sufficient for
recreating the original via eval. This module is very similar in concept to
Data::Dumper and Data::Dump, with the major differences being that this module
is designed to output to a stream instead of constructing its output in memory,
and that the traversal over the data structure is effectively breadth first
versus the depth first traversal done by the others.
In fact the data structure is scanned twice, first in breadth first mode to
perform structural analysis, and then in depth first mode to actually produce
the output, but obeying the depth relationships of the first pass.
This module provide a single function called dump_xml() that takes
a list of perl values as argument and produce a string as result.
The string returned is an XML document that represents any perl
data structures passed in. Reference loops are handled correctly.
Seamus Venasse <svenasse@polaris.ca>
Data::Dumper::Concise is a perl module for less indentation and
newlines plus sub deparsing.