# catch an exception and show it try { die "this could go wrong mightily"; } catch { print; };