Well here is what I am trying to do.
I have an array (generated from somewhere) I would like to convert
this into an associative array and then based on some other input
I would like to see if an entry exists in the asso array. As you can see
the value does not really matter. What matters is whether the entry
exists or not.
For example (very trivial one)
I have a list of names that are allowed access to a machine. I create a asso
array of them. Later when I want to check if the user is allowed to login, I
check if that user exists or not. Currently I am doing this by making value for
key as 1. But I never really use the value at all.
Regards

On Thu, Mar 20, 2008 at 8:56 PM, Robert Leibl <[EMAIL PROTECTED]> wrote:
> Sharan Basappa wrote:
>  > Thanks. One more question. I really do not want to enter any value in
>  > a hash array.
>  > What is important is that the entry should exist. How do I create such
>  > a hash array.
>  > I can give more details what I am trying to do if you want ...
>
>  First of all, I forgot to add beginners@perl.org in the address, which means
>  that I sent my last mail to you exclusively. That was not what I inteded.
>
>  I cannot give you a usefull answer, because I do not know what you want to 
> do.
>  Please post to the mailinglist, what exactly you want to do.
>
>
>  Regards
>  robert
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to