use constant { PASSED => 0, FAILED => 1, ABORTED => 2, }; # then use: exit PASSED; exit FAILED; #etc