in reply to
UID 0 and getpwnam
You should be able to test as follows
if( $uid >= 0 ) { ... }
[download]
and cover all the valid cases.
Comment on
Re: UID 0 and getpwnam
Download
Code
In Section
Seekers of Perl Wisdom