Hey all,

I have just created the hash that looks like this....

%users = (
           'uucp' => '14',
           'daemon' => '2',
           'daniel' => '45',
           'test2' => '45',
           'halt' => '0',
           'test4' => '45'
         );

$user = "test4";

Now here I want to see if $user exists in the hash... if it doesnt then
I want it to return an error.  What would be the best way of going about
this?

Really confused....

Dan

==============================
VINTEK CONSULTING PTY LTD
(ACN 088 825 209)
Email:  [EMAIL PROTECTED]
WWW:    http://www.vintek.net
Tel:    (08) 8523 5035
Fax:    (08) 8523 2104
Snail:  P.O. Box 312
        Gawler   SA   5118
==============================


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

Reply via email to