In these routines (sub1, sub2..) I have returns with messages if anything goes wrong. Otherwise I end with return ();
Is there a way I can avoid to check after each call the content of $error_msg, in order to return to the caller, and have it "implicitly" present in the subroutine ?