in reply to what's going on with this

See   perldoc -v $( or  $REAL_GROUP_ID in perlvar. (Update: Oops, didn't see Eliya's link.)