in reply to calling a sub routine from a scalar

You'd probably need to eval() the string, wouldn't you? Something like this:
eval qq{$exception->{action}( &LogMsg( \( "Error", "In action " . "$ob +ject_hash{name}: " . "$exception->{message}\n")), "\n")};


Hot Pastrami

Replies are listed 'Best First'.
Re: Re: calling a sub routine from a scalar
by suaveant (Parson) on May 16, 2001 at 20:48 UTC
    eval is overkill, and in this case die would kill the eval, not the perl script, which probably isn't what is wanted... probably
                    - Ant