in reply to Running a Shell Program from CGI page

You should also check the exit status of the external command run. You can get that by querying:
if (my $exitstatus=($?>> 8 ) == 0){ # All is well }else{ die "ERROR: Returned $exitstatus from shell"; }
See "$CHILD_ERROR or $?" in perlvar.

        The best defense against logic is ignorance.