in reply to Re^4: How can you check to see if a file handle is already open?
in thread How can you check to see if a file handle is already open?

This is quite the same technique that chaos_cat suggested before, just a bit more inefficient, since
print { $file_handles{$date} } "$_\n";
can be put outside the conditional opening of the file.