 |

Table of Contents
Main
-Home
-Advertising
-Contact Us
-Updates
Perl Overview:
-What is Perl?
Getting Started:
-Installing Perl
/ Unix
/ Windows
Writing Code:
-Hello World!
/ Basic Output
/ Adv. Output
-Variables
/ Scalar
/ Arrays
/ Joining Arrays
-File/Directory
/ Opening
/ Saving
/ Modifying
-Subroutines
/ Calling
/ Feeding




|
 |
2.2 - Advanced Ouput
The following code examples show an alternate way of outputing HTML code instead of using a bunch of print statements.
So instead of doing the following:
- print "<html>\n";
- print "<body bgcolor=\"white\">\n";
- print "etc...\n";
You can use:
- print qq~
- <html>
- <body bgcolor="white">
- etc...
- ~;
Or...
- print qq|
- <html>
- <body bgcolor="white">
- etc...
- |;
When you use the last two output methods (qq~ and qq|) you do not have to worry about formatting parenthesis correctly by using backslashes to prevent PERL from formatting the output wrong.
Questions? Comments?
Visit Our Web Forums
|
 |

A1Javascripts
A heap of free javascripts to enhance your site!
123Webmaster
The largest directory of free webmaster resources on
the planet!
1-Click-Clipart
The most popular free clip art and web graphic sites on the web!
Free-Clip-Images
A monstrous collection of free graphics including
icons, lines, backgrounds, clip art, animated gifs, and more.
FreeWareFiles
Download tons of FREE Software! Games, Screen Savers,
Utils, and more!
httpCITY
25 megs of free webspace; httpcity.com/YOU!
PerlAccess
Learn perl, or to download free, original perl
scripts.
|
 |