in reply to Getting a GID from /etc/group

getgrnam. getgrent and getgrgid are also of interest. perldoc -f on your local machine will get the most accurate description for your installation, though I wouldn't expect them to change much.

After Compline,
Zaxo