Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: print multiple linesby damian1301 (Curate) |
on May 15, 2001 at 23:34 UTC ( [id://80687]=note: print w/replies, xml ) | Need Help?? |
Just to add, it isn't working because everything is taken literally in double quotes. So, this means that you have to backslash everything that you want to show up (</tr> should be <\/tr>).
There are many other ways to print stuff like that. You can use here documents, qq, q, or just use a similarly long statement something like...:
Note that variation of quotes there. This will work as expected and print out the </tr></td> as you expected, without the Perl interpreter's interaction. UPDATE: I now look at it and think I am wrong. But, I do now that you can always print HTML the right way, with CGI.pm, of course :-). Other than that I do not know what is wrong... Tiptoeing up to a Perl hacker. Dave AKA damian
In Section
Seekers of Perl Wisdom
|
|