in reply to print html/javascript

I learned by lesson with here documents yesterday:

Get rid of all leading and trailing white space around the print <<'TOAD' and 'TOAD'lines or you will get an internal server error.

Replies are listed 'Best First'.
Re: print html/javascript
by cLive ;-) (Prior) on Apr 02, 2001 at 05:29 UTC
    Remember kiddies:
    my $name = 'cLive ;-)'; # interpolated print <<"_END_"; # or <<_END_ - quotes optional My name is $name. _END_ # prints 'My name is cLive ;-)' # not interpolated print <'_END_'; My name is $name. _END_ # prints 'My name is $name'
    And remember, quoted << 'here' text must end with the token used on a line on its own, with no trailing whitespace.

    Finally, also remember to escape the @ (ie \@) in an e-mail address contained in web page output that will be interpolated (I always forget that one :)

    cLive ;-)