|
|
| The stupid question is the question not asked | |
| PerlMonks |
Variable as module name?by Cody Fendant (Monk) |
| on Feb 01, 2013 at 22:25 UTC ( #1016618=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Cody Fendant has asked for the
wisdom of the Perl Monks concerning the following question:
I want to do this:
Only I want to replace 'Foo' with a variable determined by some other factor.
I got as far as understanding that use will never be happy with this, is that right? And I ought to use require instead? My code doesn't give an error if I do this:
But it complains that I'm calling "new" on an unblessed reference when I do my $object = $module->new(); on the next line.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||