This is a firewall script I run from my apache cgi-bin. Apache is run with user nobody (uid 99), so all scripts it runs are with uid 99. I need root access for one specific script. I tried to chmod +s it while being root, but after that the script runs with user nobody.
Somebody told me to search for suidperl - an interpreter designed for this purpose. But when I google for it I get only 'suidperl vulnerability','suidperl overflow' and such answers.
Fixed. I'm using SUDO now, and it fits well ;)