G'day intoperl,
Welcome to the monastery.
There's builtin functions to do this. No need to reinvent this particular wheel. Try this from your command line:
$ perldoc -f getpwent
-- Ken
In reply to Re: traverse through passwd file, and split fields to extract UID/GID
by kcott
in thread traverse through passwd file, and split fields to extract UID/GID
by intoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |