[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Many handlers in the same module


On Wed, Mar 19, 2008 at 2:41 PM, John ORourke <suppressed> wrote:
>  The only down-side is that (AFAICR) it is creating a new object for each
>  request

No, it's a class method.  No object is created.

>  PerlResponseHandler $My::Handlers::Persistent->response_handler
>  PerlFixupHandler $My::Handlers::Persistent->fixup_handler

That should work, but is not an issue unless you need your handler to
be called as an object method instead of a class method.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.