Hi

I'm writing some web scripts using CGI for (almost) the first time and I
have some questions/problems (perl 5.6.1):

1. when I put "#!/usr/bin/perl -wT" at the beginning of the file, and
running "perl -cw <script>" I get an error:
Too late for "-T" option at /usr/lib/cgi-bin/test.cgi line 1.", although the
scripts runs ok from the web. this is very annoying because I have to write
it without the "-T" option and add it only when I want to test it through
the web. is there a way around it?

2. Is there a way for me to control the error code returned by the browser
(I'm not sure if that's what it's called, but I mean the one that returned
"200 ok")? I want to send custom codes so the applications that parses the
result can use it to determin actions.

3. I need to get the output of an executeable (to which I pass a parameter
after checking that it holds only alphanumeric characters) and I was
wondering if this is a secure way to run it:

open ID, "-|', <executeable>, $args;
$reply = <ID>;
close ID;


thanx
--
Haim


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to