We don't bite newbies here... much | |
PerlMonks |
Re: Re: Re: Use module questions..by benn (Vicar) |
on Apr 20, 2003 at 11:02 UTC ( [id://251799]=note: print w/replies, xml ) | Need Help?? |
No - the other way round - if power.cgi is in a different directory to Test.pm, you'll need an absolute path to it ("/httpd/whatever/") or a relative path that will find it ("../../httpd/whatever"). pfaut's point is that if you use a relative path, and then move script.cgi to *somewhere else*, the relative path won't work, so you're probably safer using an absolute path. You've sussed it about @EXPORT and @EXPORT_OK though. :) Cheers Ben.
In Section
Seekers of Perl Wisdom
|
|