> 1) Add a first line to my script (whereis perl):
> #! /usr/bin/perl
Correct.
> 2) and formatting the output in html-style:
> print "Content-type: text/html";
> print "";
Almost. You need 2 newlines after the content-type declaration.
print "Content-type: text/html\n\n";
And...
3) The scrip
How can I run a Perl Script on my browser?
Reading I found that I have to do only 2 things:
1) Add a first line to my script (whereis perl):
#! /usr/bin/perl
2) and formatting the output in html-style:
print "Content-type: text/html";
print "";
...
etc.
But I dont get the results in the browser.
I