Since when???
I've always done...
print<<"end_o_doc";
<form action="../scripts/pgr_req03.cgi" method="post">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="4">
<div align="left">
<font face="Arial" size="4" color="#800000">
<strong>Individual Requesting the Service:</strong>
</font>
<br>
<font face="Arial" size="2" color="#ff0000">
<em>(Person filling out this form)</em>
</font>
</div>
</td>
</tr>
<tr>
<td>Requestor's Name</td>
<td><input type="text" name="req_name"
value="$ldap_requestor{'fullname'}"></td>
<td>Requestor's Employee #</td>
<td><input type="text" name="req_empno"
value="$ldap_requestor{'uid'}"></td>
</tr>
<tr>
<td>Requestor's Phone</td>
<td><input type="text" name="req_phone"
value="$ldap_requestor{'telephonenumber'}"></td>
<td>Requestor's E-mail Address</td>
<td><input type="text" name="req_email"
value="$ldap_requestor{'mail'}"></td>
</tr>
end_o_doc
;
which works quite nicely and provides a very neat and indented source
page. It also allows me to use quotes without an escape character.
The only thing you _MUST_ have in column 1 is the "end_o_doc" indicating
the end of the text.
Problems with this???
Ron
"Alexander Farber (EED)" wrote:
>
> Perrin Harkins wrote:
> > I know it's not the point, but I'd consider it poor style if I saw someone
> > using anything other than a <<HERE doc for the job you're testing.
>
> Why? With <<HERE you can't indent your code:
>
> my @text = (
> "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">\n",
> "<HTML>\n",
> " <HEAD>\n",
> " <TITLE>\n",
> " Test page\n",