in reply to UID 0 and getpwnam
as an aside, in perl 6, you'll be able to do something like*
which will raise an exception of type NoData (a class localized to your module) if getpwnam($username) returns an undefined value. then leave it to the NoData class to handle the exception appropriately.module module_name; my class NoData is Exception { method warn(*@args) { die @args } } my $uid = getpwnam($username) // fail NoData;
*as per Exegesis 4
~Particle ;Þ
|
|---|