Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: print multiple lines

by damian1301 (Curate)
on May 15, 2001 at 23:34 UTC ( #80687=note: print w/ replies, xml ) Need Help??

in reply to print multiple lines

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

print "<TR><TD>hi hi hi hi",'</tr></tD>';

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, of course :-). Other than that I do not know what is wrong...

Tiptoeing up to a Perl hacker.
Dave AKA damian

Comment on Re: print multiple lines
Select or Download Code
Replies are listed 'Best First'.
Re: Re: print multiple lines
by suaveant (Parson) on May 15, 2001 at 23:46 UTC
    / prints fine... it is \ that is a problem...
                    - Ant HTML seems to come out funny when I put a / in there.

      Tiptoeing up to a Perl hacker.
      Dave AKA damian

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://80687]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-11-26 16:39 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (703 votes), past polls