in reply to checking for null variables
print MESSAGE "Full Name: $FORM{name}\n";
Secondly, you might want to bunch all those prints
together into a single big print with a here document. It
might look like this:
Finally, an alternative might be to make the generation of the form even more dynamic:print MESSAGE <<EOMSG; To: $FORM{submitaddress} From: $FORM{name} Reply-To: $FORM{email} Subject: Faculty Bibliography Submission The following information was submitted from $FORM{name} at $FORM{emai +l}: Full Name: $FORM{name} Publication Name: $FORM{pubname} Other Authors: $FORM{otherauthors} Other Editors: $FORM{othereditors} Main Publication Title: $FORM{pubtitle} EOMSG
The downside to the last idea, of course, is that you lose control over the ordering. Hopefully these ideas will be useful...$longform{name} = "Full Name"; $longform{pubname} = "Publication Name"; ... foreach my $form (keys %longform) { print MESSAGE "$form: $longform{$form}\n"; } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: checking for null variables
by dragonchild (Archbishop) on Apr 15, 2003 at 19:59 UTC |