At 22:28 2002.05.29, [EMAIL PROTECTED] wrote:
>Hi all,
>
>Just a quick question!
>
>Is this the right way to assign an array to a key, in a Hash??
>
>%hash_FeatureUsers = ($str_feature => [@user]);
>
>Thanks
>Melissa

If you want to create an hash (or replace an existing one) with one entry, the key of 
the entry is $str_feature and the value of entry is a reference to an array build from 
then elements of @user, you have it I think.

You might want to change [@user]  to \@user if you really want to refence that array 
instead of referencing a new copy of the array. I'm not 100% sure but I don't think 
[@user] is the same as \@user.

Best


----------------------------------------------------------
�ric Beaudoin               <mailto:[EMAIL PROTECTED]>


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

Reply via email to