A
alexjaquet
Hi, I'm looking for a way to do this, any suggestion I've tried the
following code :
#!C:\Perl\bin\Perl.exe without result.
use CGI;
use strict;
use CGI::Carp qw(fatalsToBrowser);
use warnings;
use Syntax::Highlight:erl ':BASIC';
local our $query = new CGI;
local our $root_dir = "C:/Apache2/Apache2/cgi-bin";
open (FILE, "<$root_dir/answerz.cgi") or die "cannot open file
$root_dir/answerz.cgi";
local our $content;
while (<FILE>) {
$content .= $_;
}
print "Content-type: text/html\n\n";
print format_string($content);
Thx
following code :
#!C:\Perl\bin\Perl.exe without result.
use CGI;
use strict;
use CGI::Carp qw(fatalsToBrowser);
use warnings;
use Syntax::Highlight:erl ':BASIC';
local our $query = new CGI;
local our $root_dir = "C:/Apache2/Apache2/cgi-bin";
open (FILE, "<$root_dir/answerz.cgi") or die "cannot open file
$root_dir/answerz.cgi";
local our $content;
while (<FILE>) {
$content .= $_;
}
print "Content-type: text/html\n\n";
print format_string($content);
Thx