Change the comma to a ;$cgi->p("$dept was received."),
Also:
is better than:if ($dept eq'CA'){
If you had warnings (-w) enabled that would have been flagged up too.if ($dept ='CA'){
Update: == corrected to eq as pointed out by cdarke below
In reply to Re^4: Perl CGI and SQL statements
by wfsp
in thread Perl CGI and SQL statements
by kjg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |