Cees Hek <suppressed> 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 <suppressed>
YAPC::NA 2005 Toronto - http://www.yapc.org/America/ - suppressed
-----------------------------------------------------------------------
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.