in reply to Why isn't the file being produced?

Not to mention you should use CGI rather than your own argument parsing, and POSIX::strftime rather than your own date formatting.