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
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users