low memory version of Data::Dumper

low memory version of Data::Dumper

am 09.06.2007 08:50:51 von Edward Peschko

hey all,

I was hoping I could get around having to invent a wheel, so I
was wondering if anyone new of a Dumper equivalent that was an iterator
rather than stringifying the whole variable at once, ie:

use Data::Dumper::Iter;

my $iter = Dumper::Iter->new($variable);

while ($text = $iter->fetch())
{
print STDERR $text;
}

where '$text' contains the same stuff that it would in a Data::Dumper
call. (ie: $VAR1 = '...', etc)

Any ideas of modules that do the above? I'm constrained on memory, so
I can't use Dumper as it stands.

Ed



_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: low memory version of Data::Dumper

am 11.06.2007 11:31:26 von Brian Raven

Ed S. Peschko <> wrote:
> hey all,
> =

> I was hoping I could get around having to invent a wheel, so I was
> wondering if anyone new of a Dumper equivalent that was an iterator
> rather than stringifying the whole variable at once, ie: =

> =

> use Data::Dumper::Iter;
> =

> my $iter =3D Dumper::Iter->new($variable);
> =

> while ($text =3D $iter->fetch())
> {
> print STDERR $text;
> }
> =

> where '$text' contains the same stuff that it would in a Data::Dumper
> call. (ie: $VAR1 =3D '...', etc) =

> =

> Any ideas of modules that do the above? I'm constrained on memory, so
> I can't use Dumper as it stands. =


I'm not enttirely sure I understand your problem, but search.cpan.org is
your friend. A search for 'dump' produced a reference to
Data::Dump::Streamer on the second page, which sounds like it might be
useful.

HTH

-- =

Brian Raven =


==================== =====3D=
================
Atos Euronext Market Solutions Disclaimer
==================== =====3D=
================

The information contained in this e-mail is confidential and solely for the=
intended addressee(s). Unauthorised reproduction, disclosure, modification=
, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediat=
ely and delete it from your system. The views expressed in this message do =
not necessarily reflect those of Atos Euronext Market Solutions.

Atos Euronext Market Solutions Limited - Registered in England & Wales with=
registration no. 3962327. Registered office address at 25 Bank Street Lon=
don E14 5NQ United Kingdom. =

Atos Euronext Market Solutions SAS - Registered in France with registration=
no. 425 100 294. Registered office address at 6/8 Boulevard Haussmann 750=
09 Paris France.

L'information contenue dans cet e-mail est confidentielle et uniquement des=
tinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Tou=
te copie, publication ou diffusion de cet email est interdite. Si cet e-mai=
l vous parvient par erreur, nous vous prions de bien vouloir prevenir l'exp=
editeur immediatement et d'effacer le e-mail et annexes jointes de votre sy=
steme. Le contenu de ce message electronique ne represente pas necessaireme=
nt la position ou le point de vue d'Atos Euronext Market Solutions.
Atos Euronext Market Solutions Limited Soci=E9t=E9 de droit anglais, enregi=
str=E9e au Royaume Uni sous le num=E9ro 3962327, dont le si=E8ge social se =
situe 25 Bank Street E14 5NQ Londres Royaume Uni.

Atos Euronext Market Solutions SAS, soci=E9t=E9 par actions simplifi=E9e, e=
nregistr=E9 au registre dui commerce et des soci=E9t=E9s sous le num=E9ro 4=
25 100 294 RCS Paris et dont le si=E8ge social se situe 6/8 Boulevard Hauss=
mann 75009 Paris France.
==================== =====3D=
================

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs