As previously discussed on Perl Monks
(http://www.perlmonks.org/index.pl?node_id=307736), HTML::Template::Dumper
is almost ready for upload on CPAN. This module subclasses HTML::Template
to dump out the data structure used to fill in the template in a serialized
form. Once a remote script des
On Thu, 20 Nov 2003, Chisel Wright wrote:
> What'd I'd like to do is have access to $self in _filter_sections() so I
> can have something along these lines:
No problem. Just create a little anonymous sub when you setup the
filter.
'filter' => [
{ 'sub'=> sub { $self->_filter
Thank you everybody for your excellent help!
Removing just HTML:Template-> did the trick!!
And yes, this was real code from a script, but it was only a test script.
I always use strict :)
Thanks again everybody, everything is working great because of you all,
especially Matt.
Thanks!!
> -
Hi,
I've just hit a mental block, and I don't know if it's something that's
not possible, or I'm just being stupid.
I'm using H::T wrapped inside a package:
sub template($$) {
...
$self->{'tpl'} = HTML::Template->new(
...
'filter' => [
{ 'sub' => \&_filter_sections,