Ben --

...and then Ben Huyghebaert said...
% 
% Thanks but I don't think that will work because as someone pointed out my foreach 
loop leaves me with only the last elements of @access.  

Well, it did that as you wrote it; you looped through the whole file and
*then* started any comparing.

I was afraid you wouldn't get it on the first pass, but didn't follow
up, since the explanation as well as the rewrite say the same thing as
I redundantly would.  Maybe not so redundantly, though...


% I need it to give me all the elements in two @s I'll see if I can figure it out 
maybe someone know the best way?

Have you actually tried it?  Try David's code and see what you get.
I think you'll find that yours does

  loop through whole file
    capture name, password

  compare name, password to hash

while his does

  loop through whole file
    capture name, password
    compare name, password to hash

thus letting you check every user instead of only the last one.


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg05363/pgp00000.pgp
Description: PGP signature

Reply via email to