Hi,
     I've read the docs on traps in using require and use, etc in mod_perl...I'm confused....
heres what I'm trying to figure out...
 
lets say I have 3 sites on 1 box. so I have /home/httpd/site1 /home/httpd/site2 /home/httpd/site3
 
each of them host the same scripts. so if my script is test.cgi
/home/httpd/site1/cgi-bin/test.cgi
/home/httpd/site2/cgi-bin/test.cgi
etc
 
Now without mod_perl I have a file called configure.cgi in
/home/httpd/site1/cgi-bin/configure.cgi
etc...for other sites. each configure script is setup differently according to the site.
 
usually I would do, require "configure.cgi" in the test.cgi script; but it's my understanding this won't work in mod_perl
 
what I'm trying to do is figure out how to have test.cgi the same...and pull what it needs from the
configure file. So that when I update test.cgi I can ftp it to all the sites without having to change it for
each site. For the life of me I cannot figure out how it's done in mod_perl without having namespace problems...
 
I read that you should use a module, but then I understand you cannot have modules with the same name. I read you could also give package name in the configure.cgi script..like package config; Will that have the same namespace problem? Is there some info on how to do this someone could point me to?
 
thanks,
shawn
 
 

Reply via email to