in reply to Re: calling a sub routine from a scalar
in thread calling a sub routine from a scalar

Actually, the problem with this is $exception->{action} cannot be dereferenced, as it is a string.

Replies are listed 'Best First'.
Re: Re: Re: calling a sub routine from a scalar
by suaveant (Parson) on May 16, 2001 at 22:04 UTC
    but perl can call a subroutine by name from a string, or a variable, if you do ${'foo'}, perl sees a string so tries to look at the value of $foo. Same thing goes for subroutines... slower, but very handy.
                    - Ant