See perldoc -v $( or $REAL_GROUP_ID in perlvar. (Update: Oops, didn't see Eliya's link.)
In reply to Re: what's going on with this by AnomalousMonk in thread what's going on with this by Logicus