can returns a subref.$something->set_call_back( $this->can('func') );
You should use this method if inheritance matters to you, because can respects inheritance; if you directly take a reference to a sub in a package, and that sub is actually an inherited method, you'll have a problem. :) You won't have that problem with can.
In reply to Re: function ref
by btrott
in thread function ref
by jettero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |