Subject: RE: CGI perl html urgent
Hi,
Different? -- I think of it as a way when i need larger amounts of text or
html tags or larger amounts of whatever.
But perhaps all it is is part of Perl's characteristic of "there's more
than one way to do it" (tmtowtdi)
I think it's called a here doc
the << as you say
thus
print <<EOF;
<HTML><HEAD><TITLE>Learning Lesson 2</TITLE>
<STYLE TYPE="text/css">
<!-- BODY {
background-color : #F5F5F5;
font-family : Arial, Helvetica, sans-serif, sans-serif;
}
P {
background : #A9A9A9 none;
color : #2F4F4F;
font : 400 normal 110% Arial, Helvetica, sans-serif;
text-decoration : none;
padding : 2% 2% 2% 2%;
}
HR {
color: #FFA07A;
height: 6pt;
} -->
</STYLE>
</HEAD>
<BODY>
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td>
<!--R1C1--><p>$hello
</td>
</tr>
<tr>
<td>
<!--R2C1--><hr>
</td>
</tr>
<tr>
<td>
<!--R3C1--><p>$x + $y = $sum
</td>
</tr>
</table>
</BODY>
</HTML>
EOF
At 04:22 PM 1/5/2002 -0600, you wrote:
>But one can do the following for instance:
>#!/usr/bin/perl -w
>
>use strict;
>use CGI qw(:standard);
>
>print header;
>print qq~
> <table>
> <tr>
> <td>Text</td>
> </tr>
> </table>~;
>
>And that works fine. So how is using the << tag any different?
<snipped>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]