in reply to Running process as another user

Don't know how to do it in Perl but the usual approach seems to be to fork a process that setuid's to another user, then execs the target.