in the package:
@Countries=("Ireland","Iceland");
$Lord{Ireland}=("Ambros","Baird","Cabhan","Dahey","Eirnin","Fergus","Glendan
","Hugh","Innis",
"Liam","Murtagh","Orin","Pierce","Quinn","Ronan","Scolaighe","Turlach","Luin
randir");
$Lord{Iceland}=("Sigurður","Guðmundur","Jón","Gunnar","Ólafur","Magnús","Ein
ar",
"Kristján","Björn","Bjarni");
in the CGI / web page:
foreach $Country(@NameList::Countries)
{
print qq|1-$Country<BR>|;
print qq|2-$NameList::Lord{$Country}<BR>|;
print qq|3-$NameList::Lord{Ireland}<BR>|;
}
on the webpage:
1-Ireland <<<this line ok
2-Luinrandir <<<this line NOT ok
3-Luinrandir <<<this line NOT ok
1-Iceland <<<this line ok
2-Bjarni <<<this line NOT ok
3-Luinrandir <<<this line NOT ok
Now I know I just read something about the last var showing up in my fav
book
Read less, Learn more.... something about a \ going somewhere or something.
maybe I should just use a split and arrange the package vars to allow this
to work.
Something to do with "references"???? used for creating an array of hashes.
but I'm making a hash of arrays.... any clues here?
ok.. I'm going to read more now...
Lou
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>