"be consistent" | |
PerlMonks |
Re: CGI script organisationby tradez (Pilgrim) |
on Jan 27, 2002 at 12:54 UTC ( [id://141907]=note: print w/replies, xml ) | Need Help?? |
If you set your @INC correctly, you should be able to put your modules in any directory inside of it. Do this for me: This is a list of easy to use places you should be able to stick a .pm file. For kicks lets use /usr/lib/perl5/site_perl/5.6.1/i686-linux Place your whatever.pm files in that directory. Then withing your perl file simply place This will then scope your functions that you need to your current namespace. Have fun. Also read up on packaging to add another layer of power :). BTW mediators, if I am off a little on my logic, take it easy on me, is late :). Tradez "Never underestimate the predicability of stupidity" - Bullet Tooth Tony, Snatch (2001)
In Section
Seekers of Perl Wisdom
|
|