Re: Running a perl program offline

2005-03-19 Thread Octavian Rasnita
o: Sent: duminica, 20 martie 2005 08:24 AM Subject: RE: Running a perl program offline Octavian Rasnita <mailto:[EMAIL PROTECTED]> wrote: : Hi, : : I have tried the following script: : : use CGI; : my $q = new CGI; : : print "Content-type: text/html\n\nTestare\n"; : $q->redirec

RE: Running a perl program offline

2005-03-19 Thread Charles K. Clarkson
Octavian Rasnita wrote: : Hi, : : I have tried the following script: : : use CGI; : my $q = new CGI; : : print "Content-type: text/html\n\nTestare\n"; : $q->redirect("http://localhost/";); That doesn't look right. When I run it, I don't get a redirect. I get a text p

Running a perl program offline

2005-03-19 Thread Octavian Rasnita
Hi, I have tried the following script: use CGI; my $q = new CGI; print "Content-type: text/html\n\nTestare\n"; $q->redirect("http://localhost/";); Well, if I run this program from a web server, it redirects the page to http://localhost/ but if I run it offline, it just prints: Content-type: te