Page 1 of 1

perl server error

PostPosted: 06. October 2010 18:30
by rahul36
i m getting server error on my perl script
<script>

#!C:/xampp/perl/bin/perl -w

use CGI':standard'; # 6b.pl
print "content type: text/html \n\n";

$c=param('com');
system "echo $c";
exit(0);
<script>
error

The server encountered an internal error and was unable to complete your request.

Error message:
Insecure $ENV{PATH} while running with -T switch at C:/xampp/htdocs/6b.pl line 7. ,

Re: perl server error

PostPosted: 07. October 2010 00:46
by JonB
take a look at this page:

http://search.cpan.org/~lds/CGI.pm-3.49/lib/CGI.pm

Good luck
:)