open FH, ">whatever" or warn "blah"; # much much later print FH "something"; #### if(FH) { print FH "something" }