Olakunle Banjo wrote:
Appreciate your concerns but the code is still not doing what  I
expect it to do. I am only getting the groups name out and not the
users.

<snip>

File 1 spp/users
spp/users
iam/users spp/817208
iam/817208

If the lines in File1 actually include preceding (and sometimes trailing) space characters, that explains it. Out from my suggested code, try exchanging

    chomp and $groups{$_} = [] for <$GROUPS>;

for

    s/\s+//g and $groups{$_} = [] for <$GROUPS>;

Can someone explain the code for me

perldoc perldoc

or rather send me a snippet that is readable for my level?

And what the h*** is your level???

After this forum is for the beginners, right.

Yep. It's for discussing Perl at a beginners level. It's not a free consulting service. Surprised?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

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




Reply via email to