if ( CASE1) { return 1; } elsif ( CASE2 ) { return 2; } else { die("Must be one of CASE1 or CASE2"); }