in reply to Re^2: Determining hash order for sorting array
in thread Determining hash order for sorting array

there may be a better way to scan that hash for an existing user entry in the DB

Indeed - instead of storing your identified usernames in an array (list), create a hash of existing user names. Then you can do:

if ($existing_users{$key} ) { ...do some stuff... }

Where, instead of pushing the user names retrieved from your db onto a @existing_users array, you would have populated a %existing_users hash with 1's using the user id's as the keys

Forget that fear of gravity,
Get a little savagery in your life.

Replies are listed 'Best First'.
Re^4: Determining hash order for sorting array
by PenguinPwrdBox (Initiate) on Aug 21, 2005 at 16:50 UTC
    That worked perfectly. Thank you very much.