in reply to Howto include Perl Script into CGI script
Ah well, I'll give you some hints.
You could make the second file into a module. (Read up on "package" and "use" it from your cgi file.) Implement it as a subroutine. You must put the previous shell-script (now module) in the Perl include path, as seen in the @INC array.
To give an error message, check the return code of your new subroutine and show another html page.
(You could also run the Perl script by using back-quotes, shell-script style.)
Update: Added detail. Since the asking monk is much more experienced than me, I feel nervous about answering. But if he want to troll me more, I'll be happy to add more details. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Howto include Perl Script into CGI script
by monkfan (Curate) on May 17, 2006 at 09:37 UTC | |
by BerntB (Deacon) on May 17, 2006 at 09:45 UTC | |
by monkfan (Curate) on May 17, 2006 at 13:28 UTC | |
by wfsp (Abbot) on May 17, 2006 at 14:15 UTC | |
by monkfan (Curate) on May 17, 2006 at 15:18 UTC | |
|