Perl Monk, Perl Meditation | |
PerlMonks |
require $package?by Flame (Deacon) |
on Oct 17, 2001 at 04:15 UTC ( [id://119292]=perlquestion: print w/replies, xml ) | Need Help?? |
Flame has asked for the wisdom of the Perl Monks concerning the following question:
I have an interesting problem. I need to be able to require a list of modules... however even though I know that the file is there, it insists it is not.
This is the sub itself:
It is being called like this: loadmod qw(RPG::Item::Weapon::Spear); Any ideas about the problem? This is the output: The file requested really exists... as: RPG/Item/Weapon/Spear.pm I'm afraid I may not be very clear, but to summerize, I want to be able to import modules using require and a sub. If I wasn't clear enough on anything, just ask. "Wierd things happen, get used to it" Flame ~ Lead Programmer: GMS http://gms.uoe.org Edit: chipmunk 2001-10-16
Back to
Seekers of Perl Wisdom
|
|