Multiple Line HTML Printing in CGI

by Hiroshi on 10-10-2007

This is an example of writing multiple lines of text without using print statements in CGI.

#!/usr/bin/perl -wt
print "Content-type: text/html\n\n";
print <<endmarker;
line1
line2
line3
You can write multiple lines of text without using multiple print statements by this,
etc.
endmarker

Download simple CGI print example
Download multiple CGI print example

  • Share/Save/Bookmark

Stumble it Digg it Bookmark it Tweet it Share at Facebook

Related Posts

10 Responses to “Multiple Line HTML Printing in CGI”

  1. Oct 19, 2007
    Objessecefe Says: Reply to this comment

    Hello.
    I need your help

  2. Oct 20, 2007
    Hiroshi Says: Reply to this comment

    Sure, ask away dear.

  3. Oct 25, 2007
    Helga Says: Reply to this comment

    Hello! Nice CGI tip.

  4. Oct 25, 2007
    lora Says: Reply to this comment

    Good site, thanks!

  5. Oct 26, 2007
    Bob Says: Reply to this comment

    Nice resource, very interesting reading…p

  6. Oct 26, 2007
    van Says: Reply to this comment

    very helpful, thanks!

  7. Oct 27, 2007
    cheng Says: Reply to this comment

    Good job, here and there!!

  8. Oct 28, 2007
    Hillari Says: Reply to this comment

    Good site - you’re a pretty good writer.

  9. Oct 30, 2007
    otuyi Says: Reply to this comment

    Great helpful tutorial … Good job

  10. Oct 31, 2007
    yamomoto Says: Reply to this comment

    O, super project.1

Post a Comment

Comment will appear here after approval, Thanks for patience