- $EFFECTIVE_USER_ID
- $EUID
- $>
-
The effective uid of this process. For example:
本プロセスの実効 uid を示します。 例えば:
$< = $>; # set real to effective uid ($<,$>) = ($>,$<); # swap real and effective uids
$< = $>; # 実 uid に実効 uid を設定
($<,$>) = ($>,$<); # 実 uid と実効 uid を交換
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.
POSIX::setuid() を使って、実効 UID と実 UID を同時に変更できます。 $> を変更した場合は、変更時に起こりうるエラーを検出するために $! のチェックが必要です。
$< and $> can be swapped only on machines supporting setreuid().
$< と $> の交換は、setreuid() をサポートしている マシンでのみ可能です。
Mnemonic: it's the uid you went to, if you're running setuid.
記憶法: setuid で実行中であれば、そこ へ 行く uid です。