$handler ||= new Err; # time passes &do_right_thing() or $handler->err(title=>'Oops',msg=>'something went wrong');