Re: [Templates] One more (hopefully the last this week :-)
[prev]
[thread]
[next]
[Date index for 2004/07/22]
On Wed, 21 Jul 2004, Mark Fowler wrote:
> What you really want to know in TT is a way of seeing every variable that
> is defined in the stash at all. I can't think of an easy way to do this
> within TT. You're not the first person to ask for this either (Tom Insam
> asked about this a few months back iirc.)
Mark and Mark,
Yes this is what I'm looking for.
> >From Perl space, this is fairly simply of course:
>
> # dump out what we've about to pass in
> use Data::Dumper;
> print STDERR Dumper(\%SUI); # print to the apache log everything
My data structure is to simplistic for Data::Dumper. I wrote a simple sub
that prints where it was called from or some passed string then the keys
and contents of the SUI hash.
I found my stupid logic error and am now in the process of fixing it.
This little project has suffered from creeping feature-isms and I had not
generalized the process enough so I'm re-writing several of the processes.
I am giving it a near death-march rating.
TIA,
Rod
--
"Open Source Software - You usually get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates