Gary Nielson wrote:
>
> I am running embperl under Redhat 5.2, HTML-Embperl-1.3.2, using
> epocgi.pl. Apache doesnt have mod perl installed. I need to run a perl
> application that allows users to update Web pages without knowing HTML. I
> am having trouble getting it to run under embperl.
Try something like this:
[-
require
'/webServer/virtualDW/cannonschool.org/cgi-bin/newsEdit2/department.cgi';
-]
I did something like this to call an older CGI I had... to get it to
play really nice, however, I had to wrap everything in the CGI with sub
do {...}, then in the Embperl page, put a block of code like this:
[-
$oldfh = select(OUT);
&do();
select ($oldfh);
-]
If you can't modify the source to the CGI, I don't know how well this
will work... you may have to do some other magic with packages,
namespaces, and so forth.
In my case, I eventually re-wrote the 800 line perl CGI script in 240
lines of Embperl that actually was easier to use and had more features
:-)
--
Regards,
Wim Kerkhoff, Software Engineer
Merilus, Inc. -|- http://www.merilus.com
Email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]