> die "Only root can run this script" if getpwuid($<) ne 'root';

getpwuid($<) returns the entire passwd entry and would require a little
parsing.  How about something more like:

die "Only root can run this script" if ($< != 0);

--Chuck

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to