Thanks. I'll try it, but don't think its a problem - each script has #!Perl as the first line and Apache knows that .pl files are Perl scripts. Don't want to return, so system would not apply here.


At 01:25 PM 3/20/2003 +1100, Sisyphus wrote:


----- Original Message -----
From: "Electron One" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 12:56 PM
Subject: Help: exec(...) not working in CGI-Perl with Indigo Apache/Perl on
PC/XP


> Just downloaded the latest Indigo Apache/Perl to my PC with Windows XP. > Examples and some of my web pages work OK so Apache is OK. > > Ported some CGI-Perl scripts developed on a UNIX workstation running Apache > to my PC. > > exec() calls are used to move from page to page programmatically - mostly > error handling. > > In UNIX, exec calls were: exec ( './nextscript.pl' ); I have tried all of > the variants of this I can think of:

Unless you have associated the '.pl' extension with the perl executable,
you'll need:
exec "perl nextscript.pl";

'exec' never returns. You might need to use 'system()' instead.
ie:
system "perl nextscript.pl";

See perldoc -f exec.

Cheers,
Rob

_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to