in reply to Calling a custom sub on failure
open(LOK, ">>C:\\Perl\\RTEOlock\\check\\RTEOlock.log") || this_is_sub( +) ; [download]
unless ( open(LOK, ">>C:\\Perl\\RTEOlock\\check\\RTEOlock.log") ) { # do what ever we can not open the file ... } [download]