in reply to function ref

How about using can?
$something->set_call_back( $this->can('func') );
can returns a subref.

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.

Replies are listed 'Best First'.
RE: Re: function ref
by merlyn (Sage) on Nov 13, 2000 at 18:00 UTC