in reply to output to another directory

Add 'use CGI::Carp qw(fatalsToBrowser);' to your script and you will see 'die $!' statement results in your browser.

Most probably, it is directory permissions issue.

--dda