I'm writing a script to send emails to different locations. Some will receive one
email, others 3 or 4. Should each county have all the categories, even if some have an
empty value, or only the categories for which they have a value. And how do I wrap
this so the user will select a county
my %counties = (
Accomack => {
Region => '[EMAIL PROTECTED]',
County => '',
Abbrev => 'ACC',
},
Albemarle => {
Region => '[EMAIL PROTECTED]',
County => '[EMAIL PROTECTED]',
Engr => '[EMAIL PROTECTED]',
Abbrev => 'ALB',
},
Alleghany => {
Region => '[EMAIL PROTECTED]',
County => '[EMAIL PROTECTED]',
Abbrev => 'ALL',
);
# Selected County: return EMAIL ADDRESS
my $email_county = $counties{$query->param('County')}->{County};
# Selected County: return REGION EMAIL ADDRESS
my $email_region = $counties{$query->param('County')}->{Region};
# Selected County: return ABBREVIATION
my $county_abbrev = $counties{$query->param('County')}->{Abbrev};
# Selected County: return ENGINEER EMAIL ADDRESS
my $email_engr = $counties{$query->param('County')}->{Engr};
#How do I wrap this so they select a county
my $counties{$query->param('County')}->{County}
if($query->param('County'){}
Thanks,
GPO
---------------------------------
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs