but I think this does the same:return $self->bar(\&{__PACKAGE__ . '::foo' });
return $self->bar(\&foo);
In reply to Re: __PACKAGE__ and method reference
by borisz
in thread __PACKAGE__ and method reference
by Realbot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |