if (!open($HANDLE, ">>filename.log")) { # call a sub-routine } [download]
In reply to Re: Calling a custom sub on failure by mjeaton in thread Calling a custom sub on failure by Red_Dragon