in reply to Creating a new Unix group

I don't know specifically which of "groupadd" or "addgroup" isn't interactive, but I presume one of them is, so what's wrong with simply invoking them from your Perl program?

-- Randal L. Schwartz, Perl hacker