|
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.
|