open (...) or ($errormsg = $!, $status = -1); #### open (...) or do { $errormsg = $!; $status = -1; }