in reply to OK, tell me WHY, this is only a hello world script

Why not use the CGI.pm defaults to your advantage? The following code is taken right off of perldoc.com. It works under any normal circumstances.

#!/usr/local/bin/perl use CGI qw/:standard/; # load standard CGI routines print header, # create the HTTP header start_html('hello world'), # start the HTML h1('hello world'), # level 1 header end_html; # end the HTML


Also I think you need to have " around END in your example. And you definately do need two \n's after the Content Message if for some reason you don't just use header();
print <<"END"; <html> </html> END
I'm still pretty new here, but I just spent a good deal of time rewriting some code using the CGI.pm so its pretty fresh in my mind.

~UberDragon13

============================================================
....Sometimes life can be as bitter as dragon tears. But whether dragon tears are
bitter or sweet depends entirely on how each person perceives the taste....
============================================================

Replies are listed 'Best First'.
Re: Re: OK, tell me WHY, this is only a hello world script
by Mr. Muskrat (Canon) on May 18, 2002 at 03:14 UTC
    UD13,
    ++ for effort
    But, the quotes are not necessary. They are implied.
    Who says that programmers can't work in the Marketing Department?
    Or is that who says that Marketing people can't program?