Update You can also do
if you want, temprarily globbing your subroutine ref to the name foo... either way works...local(*foo) = \&{$exception->{action}}; &foo(args);
Update2 My bad, just realized I needed \ in front of
&{$exception->{action}}; to make it work... all fixed
- Ant
In reply to Re: calling a sub routine from a scalar
by suaveant
in thread calling a sub routine from a scalar
by cmilfo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |