From: Wil C. <wc...@na...> - 2001-11-28 02:55:06
|
Unless I'm reading the code for my_getpwent wrong (and I may be, I haven't seriously programming in Perl for a long time), it doesn't seem that it supports looking up and returning the information for a particular user. I just wrote code that called the useradmin/user-lib.pl:list_users subroutine and poked through the entire array until it found the right user... This is fine until I start doing it with remote_foreign_* calls instead of just foreign_* and start dealing with thousands of users... So, it'd be nice to have a my_getpwent that just returns a hash for a particular user, to avoid lots of network copying. Wil --=20 W. Reilly Cooley wc...@na... Naked Ape Consulting http://nakedape.cc irc.linux.com #orlug,#pdxlug,#lnxs The most costly of all follies is to believe passionately in the palpably not true. It is the chief occupation of mankind. -- H.L. Mencken |