in reply to Startup Perl program

Try this at the start of your program:
BEGIN { open STDERR,">",'C:/perl-errors.txt' or die "Can't redirect errors: +$!"; }

That will save all STDERR messages (like those from warn(), die() and compiler errors to the file.

If the error log doesn't give you enough information to figure out the problem, please post the error and the relevant code. It's not easy debugging programs with only an informal description of the program and no error messages.