Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 wandering the Monastery: (11)
As of 2014-11-23 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (134 votes), past polls