presuming $this is a lexical variable so that it'll be closure'd properly.$something->set_call_back(sub { $this->func(@_) });
-- Randal L. Schwartz, Perl hacker
In reply to Re: function ref
by merlyn
in thread function ref
by jettero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |