Syntactic Confectionery Delight | |
PerlMonks |
Re: Require a script not found in @INC arrayby pernod (Chaplain) |
on Oct 07, 2004 at 08:35 UTC ( [id://397243]=note: print w/replies, xml ) | Need Help?? |
Try FindBin, it will create the absolute path to the directory where the script is run, and make it accessible in the variable $FindBin::Bin. Eg:
Where moduledir is where I place my own code (big surprise :). This solved similar problems for me. Hope this helps! pernod
In Section
Seekers of Perl Wisdom
|
|