Andy Wardley explained:

> that plugin's new() method might call 
> 
>  $context->define_filter( make_menu => sub { ... } )
> 
Ok, that's what my plugin does, and it works fine.
The following question is more of theoretical interest:

If I use my plugin to create more than one object, i.e.

[% USE foo = MyPlugin('foo') %]
[% USE bar = MyPlugin('bar') %]

...should I care to avoid that the filter definition
is overwritten each time (e.g. by defining some
global variable) ?
-- 
Curious,
haj


Reply via email to