Perl Programming/Keywords/getpwent

The getpwent keyword
The getpwent function gets the next passwd record.