use Try::Tiny; sub foo { try { die "bang" } catch { return "nope" }; # just returns from this block! return "foo"; } print foo(), "\n"; # prints "foo"