The ampersand is binding just to $self
and not the whole thing. You can do curlies around the part that returns the reference:
&{$self->{callback}}($arg);
But the
$self->{callback}->($arg);
is generally considered cleaner, why don't you want to use it?
Adam Bellaire
2009-02-12 23:12:19