my $ref = do { no strict 'refs'; \&$var }; $ref->();
There's usually better ways of achieving one's goals. We could help you better if we knew what you were actually trying to do.
In reply to Re: Invoke sub whose name is value of scalar
by ikegami
in thread Invoke sub whose name is value of scalar
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |