Re: [Templates] correct usage of Dumper plugin

[prev] [thread] [next] [Date index for 2004/09/02]

From: Darren Chamberlain
Subject: Re: [Templates] correct usage of Dumper plugin
Date: 16:45 on 02 Sep 2004
--KrHCbChajFcK0yQE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Jamie Echlin <jechlin at clearvision-cm.com> [2004/09/02 17:39]:
> Someone else has also suggested that - it doesn;t actually seem to work=
=20
> but I'm assuming it's because there is some hidden USE Dumper that I=20
> haven't found, and it does work.

The problem is that all of Data::Dumper's attributes are package-scoped
globals, so when you pass options to the Dumper plugin you are modifying
$Data::Dumper::Indent, $Data::Dumper::Pad, and so on.  It would be
possible to re-work the Dumper plugin to store those options locally,
and apply them before calling Dumper, but it is not setup that way
currently.

(darren)

--=20
Make something future-proof and the universe will invent a worse
future.
    -- David Cantrell

--KrHCbChajFcK0yQE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBN04+zsinjrVhZaoRAq7yAKCVdHbYA+DmxRqmoc22E+94/o8KzgCfSSKn
IYrUN3ag4EdpKyILMBUJk0A=
=cagC
-----END PGP SIGNATURE-----

--KrHCbChajFcK0yQE--

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

Re: [Templates] tpage extension
Myk Melez 14:00 on 29 Aug 2004

Re: [Templates] tpage extension
Johan Vromans 15:07 on 29 Aug 2004

Re: [Templates] tpage extension
Andy Wardley 07:03 on 02 Sep 2004

Re: [Templates] tpage extension
Andy Wardley 07:42 on 02 Sep 2004

Re: [Templates] tpage extension
slaven 08:37 on 02 Sep 2004

Re: [Templates] tpage extension
Dylan Hardison 13:06 on 03 Sep 2004

[Templates] correct usage of Dumper plugin
Jamie Echlin 16:04 on 02 Sep 2004

Re: [Templates] correct usage of Dumper plugin
Jamie Echlin 16:39 on 02 Sep 2004

Re: [Templates] correct usage of Dumper plugin
Darren Chamberlain 16:45 on 02 Sep 2004

Re: [Templates] correct usage of Dumper plugin
Jamie Echlin 17:33 on 02 Sep 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52