Re: [htmltmpl] filter question
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2003-11-20 16:09:20
|
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_sections(@_) }, 'format' => 'scalar' }, This is called a closure because it captures the lexical value of $self and keeps it around for when the sub is called. -sam |