Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Errors in my (simple?) CGI Script!

by impossiblerobot (Deacon)
on Mar 09, 2002 at 21:52 UTC ( [id://150621]=note: print w/replies, xml ) Need Help??


in reply to Re: Errors in my (simple?) CGI Script!
in thread Errors in my (simple?) CGI Script!

What is the advantage of using CGI.pm to print the header?

Impossible Robot
  • Comment on Re: Re: Errors in my (simple?) CGI Script!

Replies are listed 'Best First'.
Re: Re: Re: Errors in my (simple?) CGI Script!
by gellyfish (Monsignor) on Mar 09, 2002 at 22:04 UTC

    For one thing is less typing :) Also more recent versions of CGI.pm will print a header like :

    Content-Type: text/html; charset=ISO-8859-1
    which is recommended in a CERT Advisory ... this is one of the advantages of using a module, they often get quietly updated like this long before the information that gave rise to the update has been as widely propagated.

    /J\

      Technically, CGI.pm also is cross-platform, that is, it uses the correct CRLF (newline) sequence that is needed for the browser to parse them, on all platforms. As many have pointed out, this is usually a non-issue, as most (modern) web servers correct such things on the fly, before sending the response, but it doesn't hurt in case someone, for some reason, would run your program under one that doesn't. :)
      You have moved into a dark place.
      It is pitch black. You are likely to be eaten by a grue.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-18 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found