try { # ... } catchif TypeError => sub { # ... }, catchif RangeError => sub { # ... }, catch { ...