DJRobThaMan
11-16-2005, 08:56 PM
So, here's yet another question for you perl experts.
I remember reading on a site somewhere while I was trying to figure out something completely different that it is possible to use the use function to include a .cgi file that is in your cgi-bin so that you can use sub-routines from those files within another cgi file. I'm still trying to find it but to no avail yet.
eg
#! perl/perl.exe;
use CGI;
use "file.cgi"; <-----------
Is this possible (I know the current syntax is incorrect if so)?
If this is 100% not possible is there another way to access and execute code from another cgi file? That's basically what I want to do.
Thanks a lot,
Douglas
I remember reading on a site somewhere while I was trying to figure out something completely different that it is possible to use the use function to include a .cgi file that is in your cgi-bin so that you can use sub-routines from those files within another cgi file. I'm still trying to find it but to no avail yet.
eg
#! perl/perl.exe;
use CGI;
use "file.cgi"; <-----------
Is this possible (I know the current syntax is incorrect if so)?
If this is 100% not possible is there another way to access and execute code from another cgi file? That's basically what I want to do.
Thanks a lot,
Douglas