On 7/5/05, Michael Peters <[EMAIL PROTECTED]> wrote:
> You can never do
>   $self->add_callback( init => sub {...})
> where $self is an object and have that sub get executed. It will only
> get executed if $self is a class name.

But you haven't explained to us why you can't just use this:

My::BaseClass->add_callback( init => sub { ... });

- or -

$class->add_callback( init => sub { ... });

Why do you have to call add_callback on $self?  Is there a specific
reason that we are missing?

Cheers,

Cees

---------------------------------------------------------------------
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