jettero has asked for the wisdom of the Perl Monks concerning the following question:
How do ya do it if it's ... from $object? I tried this:$something->set_call_back( \&localfunction );
I'll keep pluggin, but I bet it's really obvious...$something->set_call_back( \$this->func ); # or $something->set_call_back( \&{ $this->func }); # and $something->set_call_back( \( $this->func ) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: function ref
by merlyn (Sage) on Nov 13, 2000 at 17:57 UTC | |
|
Re: function ref
by Anonymous Monk on Nov 13, 2000 at 11:53 UTC |