Same way you would call a function from a scalar:
use strict; my $funcName = 'foo'; no strict 'refs'; &{$funcName}(); use strict 'refs'; sub foo { print "foo\n"; }
Hazah! I'm Employed!
In reply to Re: Perl/MySQL - calling sub from name in dbase
by osunderdog
in thread Perl/MySQL - calling sub from name in dbase
by meetn2veg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |