Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Variable as module name?

by Cody Fendant (Pilgrim)
on Feb 01, 2013 at 22:25 UTC ( #1016618=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Foo;
    my $object = Foo->new();
    
  2. or download this
    my $module_name = 'Foo';
    use $module_name;
    my $object = $module_name->new();
    
  3. or download this
    $module = 'Foo';
    my $module_path = $module . '.pm';
    require $module_path;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2015-06-02 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (77 votes), past polls