The POSIX module has what you need.
Have you considered sudo instead of suidperl?use POSIX qw( getuid geteuid getpwuid );
Update: Corrected a typo. mortis points out a better way for simple cases.
After Compline,
Zaxo
In reply to Re: Process owner
by Zaxo
in thread Process owner
by belg4mit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |