"here" docs

Eugene Tsyrklevich eugenet at mailcity.com
Sun Feb 27 02:51:49 CST 2000

here docs are very easy to break and are very hard to debug.. qq() and friends should be used instead (http://www.perl.com/CPAN-local/doc/manual/html/pod/perlop.html#Quote_and_Quote_like_Operators)

print qq{blah
blah blah};



On Sat, 26 Feb 2000 21:38:51   Russ Schnapp wrote:
>The reason you are getting back a message about an empty 
>document is quite simple.  All you are returning is the content 
>header.  You aren't returning anything to actually display!
>Decide on what html you want to be returned when this CGI script 
>is invoked, and emit that.  The easiest way is through a "here" doc, 
>e.g., by adding the following to the end of your script:
>print <<END;
><title>Thank you!</title>
><h1 align="center">Thank you!</h1>
><p>Your form has been successfully submitted.</p>

MailCity. Secure Email Anywhere, Anytime!

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.

More information about the San-Diego-pm mailing list