...
namerica:united states
samerica:brazil
...
####
#the email part of the CGI
...
Country: $param{country}
...
#sub to create HTML pull down
sub generateCountries{
my (@all_countries, $HTML_String);
open(FILE, "){
if(/(.*):(.*)/i){
push @all_countries, $1;
}
}
my $HTML_String = "\t" . '";
return $HTML_String;
#the HTML form call to CGI that prints pull down
Country:
####
...
Country : $param{country}
Country1: $param{country1}
Country2: $param{country2}
...