Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Need help with http 1.1 headers

by Athanasius (Archbishop)
on Mar 07, 2013 at 03:30 UTC ( [id://1022141]=note: print w/replies, xml ) Need Help??


in reply to Need help with http 1.1 headers

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,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-18 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found