Satanya has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have a cgi script that I have created for my company. In it I need to be able to pull values from a form and mail them to an alias. However, when I compile it I have an error thrown that I do not understand. Any help would be appreciated.
Here is the error I get:
Bareword "MAIL" not allowed while "strict subs" in use at dra_feedback.cgi line 112.
Execution of dra_feedback.cgi aborted due to compilation errors.
Here are the instances of MAIL in my code.
open (MAIL, "|/user/lib/sendmail -t") || Error ("Unable to run mail pr +ogram "); print MAIL <<EOMH; To: $to CC: $cc From: $from Name: $name ############more formating code here######### EOMH Close (MAIL);
The last line of the code, Close (MAIL); is the line 112 where the compiler gives me the error.
Thanks for your time.
Newbie Satanya
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail errors
by blakem (Monsignor) on Sep 06, 2001 at 22:31 UTC | |
|
Re: Mail errors
by rchiav (Deacon) on Sep 06, 2001 at 22:33 UTC | |
by Satanya (Novice) on Sep 06, 2001 at 22:44 UTC |