in reply to __PACKAGE__ and method reference

you can use
return $self->bar(\&{__PACKAGE__ . '::foo' });
but I think this does the same:
return $self->bar(\&foo);
Boris

Replies are listed 'Best First'.
Re^2: __PACKAGE__ and method reference
by Realbot (Scribe) on Mar 09, 2005 at 13:46 UTC
    Both worked fine. I don't know why I thought that full package was needed...
    Thanks!