Cees Hek <[EMAIL PROTECTED]> wrote:
>
> > Hmmm, thinking about it today, maybe the following syntax would make
> > more sense?
> >
> >   package MyPlugin;
> >   sub import {
> >       my $caller = scalar(caller);
> >       $caller->add_callback('init', 'my_setup', 'FIRST');
> >       goto &Exporter::import;
> >   }
>
> Yes, I like that a lot better.

I've updated my patch to use this syntax and made a new tarball:

  
http://www.occamstoothbrush.com/downloads/perl/CGI-Application-4.0_2-class-callbacks-patch2.tgz

> I haven't had a chance to take a really close look at the patch, but
> from what you describe, and from my brief look at it, this will solve
> most if not all of the outstanding problems I discovered with my
> original callbacks patch.

Great!  Thanks for having a look at it.


Michael


-----------------------------------------------------------------------
Michael Graham <[EMAIL PROTECTED]>

YAPC::NA 2005 Toronto - http://www.yapc.org/America/ - [EMAIL PROTECTED]
-----------------------------------------------------------------------



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to