Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Perl/MySQL - calling sub from name in dbase

by osunderdog (Deacon)
on Oct 18, 2005 at 13:39 UTC ( #500979=note: print w/replies, xml ) Need Help??


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"; }

Hazah! I'm Employed!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://500979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-12-01 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?