On Fri, 1 Nov 2002 12:45:43 +0100, [EMAIL PROTECTED] (Adriano Allora) wrote:
>Hi to all, >I have this problem: I want to put a dot pl file (my perl script) in a >url and I want it to write the page and the browser to read it. >For instance, this one could be my perl script: > >#!/usr/bin/perl > >print "HTTP/1.0 200 OK\n"; >print "Content-Type: text/html\n\n"; >print '<HTML><HEAD>'; >print '<TITLE>Done, cattsarola!</TITLE>'; >print '</HEAD><BODY>'; > > Hi, I'm working! > print "Hi, I'm working!"; > > >print '</BODY>'; >print '</HTML>'; Or use a "here document" print<<EOHTML; HTTP/1.0 200 OK\n Content-Type: text/html\n\n <HTML><HEAD> <TITLE>Done, cattsarola!</TITLE> </HEAD><BODY> Hi, I'm working! </BODY> </HTML> EOHTML -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]