Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by osunderdog (Deacon)
on Oct 18, 2005 at 13:39 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://500979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-30 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found