if that's causing you 500 errors then it's probaly not allowed. You can however add this to a script if your having problems and it will write to a text file with the errors.
BEGIN {
use CGI::Carp qw(carpout);
use diagnostics;
open(LOG, ">errors.txt");
carpout(LOG);
close(LOG);
}
use CGI::Carp qw(fatalsToBrowser);
You can also check your "Error log" at your cpanel for errors.