eval { # Code that might die. 1; } or { # Handle the exception. }