in reply to calling a sub routine from a scalar
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: calling a sub routine from a scalar
by cmilfo (Hermit) on May 16, 2001 at 21:06 UTC | |
by suaveant (Parson) on May 16, 2001 at 22:04 UTC |