$pw->getpwent()
pw
Successive calls to getpwent return objects representing successive entries from the password table.
getpwent