Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Arbritrarily requireing classes.

by broquaint (Abbot)
on Aug 04, 2004 at 03:34 UTC ( #379892=note: print w/ replies, xml ) Need Help??


in reply to Arbritrarily requireing classes.

use Module::Locate 'locate'; ## later ... my $className = 'A::N::Other::'.ucfirst($typeTableName); my $fooOb = eval { require( locate $className ); $className->doSomeBar($id); };
See. Module::Locate for more info.
HTH

_________
broquaint


Comment on Re: Arbritrarily requireing classes.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-07-07 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls