in reply to [stonehenge] deep copy what's the function getpwent()
getpwent (note that it is all lower case - Perl considers case important) is a built in Perl function. See the link for details.