>>>>> "Andy" == Andy Wardley <[EMAIL PROTECTED]> writes:

Andy> Randal L. Schwartz wrote:
>> Actually, for this syntax, you'd simply return from the plugin
>> constructor with a coderef that returns coderefs (a filter factory)
>> rather than a plugin object.  I'm not sure that's permitted by the
>> protocol though.  Andy?  Is that cheating?

Andy> Nope.  It's a bit of a kludge, but it's definately fair game.

Cool.  That'd permit things like:

        USE MyTool(constructorargh, constructorargh2, constructorargh3);

        mumblemumble | MyTool(filterarg1, filterarg2);

        myFilter = MyTool(filterarg3);

        mumbly | myFilter;

        USE OtherTool = MyTool(constargh3);

        mumble | OtherTool(filterarg4);

        otherFilter = OtherTool(filterarg5);

        mimble | otherFilter;

Nice.  Enough flexibility to really shoot yourself in the foot,
in a paramterized way.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to