in reply to Re: Re: Re: Re: Database issues
in thread Database issues

This is the structure of the hash you want:
%hash = ( # george is added 'george@host.com' => 'george', ); %hash = ( # bill is added 'george@host.com' => 'george', 'bill@company.net' => 'bill', );
But you're not setting with the actual value of the email field that has been passed. You're setting the key to the value 'email', instead of an email address, thus producing
%hash = ( # george is added 'email' => 'george', ); %hash = ( # bill is added 'email' => 'bill', );
The outcome is that they're names are overwritten, because you're accessing the field by the same key, which is 'email', instead of $email, they're addresses.

Your fix is:
$this{$email} = $name;


-nuffin
zz zZ Z Z #!perl