Multiple Line HTML Printing in CGI

by on October 10th, 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

10 Reviews

  1. Objessecefe says:

    Hello.
    I need your help

  2. Hiroshi says:

    Sure, ask away dear.

  3. Helga says:

    Hello! Nice CGI tip.

  4. lora says:

    Good site, thanks!

  5. Bob says:

    Nice resource, very interesting reading…p

  6. van says:

    very helpful, thanks!

  7. cheng says:

    Good job, here and there!!

  8. Hillari says:

    Good site – you’re a pretty good writer.

  9. otuyi says:

    Great helpful tutorial … Good job

  10. yamomoto says:

    O, super project.1

Leave a Review