in reply to Not printing to file, but print to screen ok
I'm wondering if you're on a shared hosting account - try checking that your quota is not exceeded. If it is one of the consequences is sometimes to write empty files. Get your quota increased!!
In Section
Seekers of Perl Wisdom