Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 about the Monastery: (8)
As of 2015-07-07 11:41 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