http://www.perlmonks.org?node_id=829285


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!!