Go to your error logs at your cpanel and see if you see error messages.
You can add this to your script and it will write any errors to a text file named errors.txt
BEGIN {
use CGI::Carp qw(carpout);
use diagnostics;
open(LOG, ">errors.txt");
carpout(LOG);
close(LOG);
}
Remove it or comment it out when your finished.