my $result=eval{$sub); print($@ ? "Exception: $@\n" : $result);
In reply to Re: Is it possible to use a scalar to call a subroutine?
by rovf
in thread Is it possible to use a scalar to call a subroutine?
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |