use v5.40; use Try::Tiny qw( try catch ); ... { # Code that hasn't been converted to 5.40 yet, for example. no feature qw( try ); try { ... }; } ...