|Don't ask to ask, just ask|
Re: elevated privileges for a single callby kcott (Chancellor)
|on May 07, 2013 at 12:27 UTC||Need Help??|
Welcome to the monastery.
See perlvar for special variables that capture the type of information you're after. Here's a quick example with $^X, $0 and $$:
Variables relating to permissions include: $< (real user id), $> (effective user id), $( (real group id), $) (effective group id).
The English module provides longer, more meaningful names for these punctuation variables. Don't forget to load it as:
You might also find perlsec to be useful (even if only for additional examples using these special variables).