Re: Getting rid of hash values I don't want..

2001-11-29 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Daniel Falkenberg) wrote: > Hey all, > > Currently I am working on the Linux /etc/passwd file. Now I want to be > able to split the /etc/passwd file for example... > > tunnel:x:503:503::/home/tunnel:/bin/bash > test:x:504:50:Test Account:/hom

RE: Getting rid of hash values I don't want..

2001-11-28 Thread Daniel Falkenberg
List, Just been playing around with the code a little more... sub view_users{ open PASSWD, "$file" or die "$file: $!\n"; while ($lines = ) { @lines = split (/:/, $lines); if ($lines[3] == 45 ) { $users{$lines[0]} = $lines[4]; } } return %users; close PASSWD; } vie

Getting rid of hash values I don't want..

2001-11-28 Thread Daniel Falkenberg
Hey all, Currently I am working on the Linux /etc/passwd file. Now I want to be able to split the /etc/passwd file for example... tunnel:x:503:503::/home/tunnel:/bin/bash test:x:504:50:Test Account:/home/test:/bin/false test2:x:507:502:Test Account:/home/test2:/bin/false daniel:x:508:45:Thats M