hi guys
i'm just starting to explore cgi scripts
hm..just a basic question
how do i run a simple like below? i got it from cpan
but they didn't explain what i should do
[CODE=perl]
#!/usr/local/bin/perl -w
use CGI; # load CGI routines
$q = new CGI; # create new CGI object
print $q->header, # create the HTTP header
$q->start_html('he llo world'), # start the HTML
$q->h1('hello world'), # level 1 header
$q->end_html; # end the HTML
[/CODE]
i've got apache and i tried to put it in my cgi-bin folder in apache
and run it on my browser with http://localhost/cgi-bin/1.cgi
but didn't seem to work
am i doing it correctly? pls advise
i'm just starting to explore cgi scripts
hm..just a basic question
how do i run a simple like below? i got it from cpan
but they didn't explain what i should do
[CODE=perl]
#!/usr/local/bin/perl -w
use CGI; # load CGI routines
$q = new CGI; # create new CGI object
print $q->header, # create the HTTP header
$q->start_html('he llo world'), # start the HTML
$q->h1('hello world'), # level 1 header
$q->end_html; # end the HTML
[/CODE]
i've got apache and i tried to put it in my cgi-bin folder in apache
and run it on my browser with http://localhost/cgi-bin/1.cgi
but didn't seem to work
am i doing it correctly? pls advise
Comment