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 btrott (Parson) on Nov 13, 2000 at 11:13 UTC | |
by merlyn (Sage) on Nov 13, 2000 at 18:00 UTC | |
|
Re: function ref
by chromatic (Archbishop) on Nov 13, 2000 at 10:49 UTC |