Hello all,

I want to create a 2 levels hash and to loop using the second level key.

I want to have something like:

$list{$member}{$email} = $name;

This line gives me errors meaning that it is not a correct code.

I want to have a hash with more lists of members.
For each member I want to have a hash with the email as the key, and the
name as the value.

Then I want to make a loop to perform an action for each email.

I've tried with:

foreach my $email (keys %list{'list_number1'}) {
....
}

Please tell me if the loop sintax is good, and ... more important, how to
create that hash with hashes, because this is the main problem.

I don't know how many lists will get that hash and how many names are in the
second hash, so I can't use:

my %lists = (
'list1' => {'email' => 'name'},
....
);

Thank you very much!

Teddy's Center for the blind: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to