A side note: The script doesn’t use strict. When I added this, it uncovered two errors in sub error1:

  1. The variable $sitename is not defined.

  2. In the line:

    print MAIL "To: info@email.com\n";

    the @ symbol is not escaped, meaning the (non-existent) array @email will be interpolated, producing: To: info.com.

Moral: Always use strict !

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


In reply to Re: Need help with http 1.1 headers by Athanasius
in thread Need help with http 1.1 headers by htmanning

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":