I am just wondering how to validate a user who is using the script??

I wanted to allow only user below to be able to user the script and was thinking about
userA(userid: 1077)
userB(userid: 1088)
userC(userid: 1099)

so, inside of script, I would put,

unless ( $userid =~ /1077|1088|1099/ ) {
       print "You are not authorized to use this\n";
}

but I am not sure how to come up w/ $userid ?
how do I find out what the userid of person who is using the script? Is there specific perl command for that?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to