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


Share

10 Reviews

  1. yamomoto says:

    O, super project.1

  2. otuyi says:

    Great helpful tutorial … Good job

  3. Hillari says:

    Good site – you’re a pretty good writer.

  4. cheng says:

    Good job, here and there!!

  5. van says:

    very helpful, thanks!

  6. Bob says:

    Nice resource, very interesting reading…p

  7. lora says:

    Good site, thanks!

  8. Helga says:

    Hello! Nice CGI tip.

  9. Hiroshi says:

    Sure, ask away dear.

  10. Objessecefe says:

    Hello.
    I need your help