[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#438484: ITP: libdata-dump-streamer-perl -- Perl module for accurately serializing a data structure as Perl code



Package: wnpp
Severity: wishlist
Owner: Alexis Sukrieh <sukria@sukria.net>


* Package name    : libdata-dump-streamer-perl
  Version         : 2.03-30
  Upstream Author : Yves Orton <yves@cpan.org>
* URL             : http://search.cpan.org/~yves/Data-Dump-Streamer-2.03-30/lib/Data/Dump/Streamer.pm
* License         : Artistic License
  Programming Lang: Perl
  Description     : Perl module for accurately serializing a data structure as Perl code

Given a list of scalars or reference variables, writes out their contents in perl syntax. The references can also be objects. The contents of each variable is output using the least number of Perl statements as convenient, usually only one. Self-referential structures, closures, and objects are output correctly.

The return value can be evaled to get back an identical copy of the original reference structure. In some cases this may require the use of utility subs that Data::Dump::Streamer will optionally export.

This module is very similar in concept to the core module Data::Dumper, with the major differences being that this module is designed to output to a stream instead of constructing its output in memory (trading speed for 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.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-vserver-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)



Reply to: