print isn't handled by autodie, so confess if print fails when writing to filehandles or when output is likely to be redirected to a file.