perlquestion
LukeyBoy
So I've coded a bunch of standalone scripts for websites before, but now I'm working on a project where I want to use modules to bundle a bunch of common functions (yay). So in my CGI directory I stick all the Perl .pl/.cgi files, but where should I put the .pm files? I obviously don't want them in the same directory since then the user could see them if they typed in the right URL (I think). What I want to do is lay it out like so:<br><br>
<pre>
/site
+--- cgi-bin - contains all the scripts
+--- modules - contains my module files
</pre><br>
But I can't figure out how to get the use operator to take a relative path (such as ../). I tried to append -I../modules in the magic Perl line at the top of the scripts, but that still bombs with Perl unable to find the mods. Any ideas? Thanks!