in reply to Perl/MySQL - calling sub from name in dbase
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"; } [download]
Hazah! I'm Employed!