You are viewing the version of this documentation from Perl blead. This is the main development branch of Perl. (git commit 3c2aa9fef064d0f6a90cb7999b1ca7a4fac4be3a)
$EFFECTIVE_USER_ID
$EUID
$>

The effective uid of this process. For example:

$< = $>;            # set real to effective uid
($<,$>) = ($>,$<);  # swap real and effective uids

You can change both the effective uid and the real uid at the same time by using POSIX::setuid(). Changes to $> require a check to $! to detect any possible errors after an attempted change.

$< and $> can be swapped only on machines supporting setreuid().

Mnemonic: it's the uid you went to, if you're running setuid.