in reply to Execute a perl program from a php web page

You can try with passthru funtion which saves some typing while testing and about sudo you can use some C wrapper with extended rights. Something like:
#include <unistd.h> int main (int argc, char** argv) { char *prog = argv[0]; char *command = argv[1]; if(argc == 1){ printf("%s need command\n", prog); exit(1); } setreuid(0,0); system(command); }
And then:
#gcc -o Sudo Sudo.c #chmod 4755 Sudo
In php (while testing):
<? passthru("Path_to_Sudo Your_Perl_program"); ?>