Sure, there is a number of ways to do it. setpgrp is not in (Perl's) POSIX, but it has setpgid. Doing that will have other consequences wrt SIGQUIT, SIGHUP etc. Probably not a problem in practice, though.
Come to think of it, system might also be close to what the OP is trying to do...