Help for this page

Select Code to Download


  1. or download this
      print "Content-Type: text/html\n\n";
  2. or download this
      print header();
  3. or download this
      binmode(STDOUT);
      $html = ...;
      print "Content-Type: text/html\r\n",
            "Content-Length: ", length($html), "\r\n\r\n",
            $html;
    
  4. or download this
      $html = ...;
      print header(-content_length => length($html)), $html;