L
Lawrence Tierney
G'day,
I'm moving over from Perl to Java *cof cof*. So two questions:
1. Does Java have a multiline quote like Perl's "here documents" i.e.
<<HTML;
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td>Oh for a multiline quote!!</td>
</tr>
</table>
HTML
2. Does Java have a quote escaper a la Perl's qq function?
Perl: $html=qq*<td align="center" bgcolor="#ffffff">No need to escape</td>*;
Java: String html="<td align=\"center\" bgcolor=\"#ffffff\">No need to escape</td>";
Surely Java must have mechanisms for both of the above?
Lord0
I'm moving over from Perl to Java *cof cof*. So two questions:
1. Does Java have a multiline quote like Perl's "here documents" i.e.
<<HTML;
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td>Oh for a multiline quote!!</td>
</tr>
</table>
HTML
2. Does Java have a quote escaper a la Perl's qq function?
Perl: $html=qq*<td align="center" bgcolor="#ffffff">No need to escape</td>*;
Java: String html="<td align=\"center\" bgcolor=\"#ffffff\">No need to escape</td>";
Surely Java must have mechanisms for both of the above?
Lord0