--aplogies forgot Subject line

Hi guys I am having trouble trying to figure out how to do a match between
two hashes
basically I have the $login and $gid from the passwd file and the $gid and
$gname fields from 
the group file. (I got these from getpwent and getgrent)


#!/util/perl5.static -w
# Build phash
%phash = ();
$gid => $login
@gid = keys( %phash );

# Build ghash
%ghash = ();
$gname => $gid

# Match $login to $group
foreach $gid (@gid) {

        if ($gid =~ / /;   ) {
                #Build $login => $gname Hash

        }


}

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

Reply via email to