I am checking a value from a form to see which format and addresses should be used in
an e-mail. could anyone tell me why this:
If ($destination eq "HR"){ &resources;}
elsif ($destination eq "MIS"){&techsupport;}
else {print "<HTML><BODY>Invalid destination.</BODY></HTML>";
exit;}
would generate this message:
syntax error at mailer2.pl line 13, near ";}"
Execution of mailer2.pl aborted due to compilation errors.
I have tried deleting the semicolons, but that gave me this message:
Can't use subscript on subroutine entry at mailer2.pl line 13, near "&resources}"
(Did you mean $ or @ instead of &?)
syntax error at mailer2.pl line 14, near "elsif"
Execution of mailer2.pl aborted due to compilation errors.
Thanks for any help.
Adam Carson
MIS Department
Berkeley County, SC
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]