good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Module usageby dpuu (Chaplain) |
on Jul 22, 2002 at 01:31 UTC ( [id://183911]=note: print w/replies, xml ) | Need Help?? |
You can use %INC. Its like @INC, only the hash key is the name of the file you want to find. For example:
A slight bug in this (IMHO) is that you can't use a module name (i.e. $INC{"Data::Dumper"} won't work). You have to use the filename of the module. Oh, and you have to "use" or "require" the module before %INC includes the module's file. --Dave.
In Section
Seekers of Perl Wisdom
|
|