logo       

perl transformation module: msg#00001

text.yaml.general

Subject: perl transformation module

Hi there,


In attachment you find a transformation module for
perl data structures. Because Yaml maps nicely onto
perl data structures, I thought some of you might find
it useful.

The module has the following features :

1. allows arbitrary nesting of hashes and arrays.

2. allows the use of scalar, does not allow the use of
REFs, GLOBs etc.

3. currently does not allow cyclic or self-referential
data structures.


A transformation can be run in two modes :

1. Selective transformation : this basically means
that you select data from an existing data source and
that the result data automatically inherits its
structure from the source data.

2. Constructive transformation : you copy data from
source to result, and thereby determine the structure
for the result data.

The two above modes can be combined. Transformations
can also be cascaded. There is more explanation in
the comments at the beginning of the module. I also
included example test scripts that I use as unit
tests.

This is work in progress, comments are welcome. The
code is freely distributale under the perl license.


Hugo

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Attachment: package.tar.gz
Description: 2080871118-package.tar.gz

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise