sub doThis{ print "doThis doing this with $_[0]"; };; { no strict 'refs'; my $sub = 'doThis'; $sub->('fred'); };; doThis doing this with fred
In reply to Re: Is it possible to use a scalar to call a subroutine?
by BrowserUk
in thread Is it possible to use a scalar to call a subroutine?
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |