You are viewing the version of this documentation from Perl 5.005. View the latest version
$REAL_GROUP_ID
$GID
$(

The real gid of this process. If you are on a machine that supports membership in multiple groups simultaneously, gives a space separated list of groups you are in. The first number is the one returned by getgid(), and the subsequent ones by getgroups(), one of which may be the same as the first number.

However, a value assigned to "$(" must be a single number used to set the real gid. So the value given by "$(" should not be assigned back to "$(" without being forced numeric, such as by adding zero.

(Mnemonic: parentheses are used to GROUP things. The real gid is the group you LEFT, if you're running setgid.)

init