in reply to Re^2: What modules should be added to the corelist?
in thread What modules should be added to the corelist?

...then I guess you'll be happy to know that it was a core feature 3 years ago, and as of v5.40, it is no longer experimental.

$ perl -E 'use v5.40; try { die "x" } catch ($e) { say $e; }'

Replies are listed 'Best First'.
Re^4: What modules should be added to the corelist?
by bliako (Abbot) on Aug 04, 2024 at 19:06 UTC

    yes indeedee I discovered this a few weeks ago. OT: I sometimes used Try::Tiny. Do you know how the name clash will be handled if I don't modify my code to remove that package?

      Well if you don't modify it at all, it won't say "use v5.40" :-)

      I have not tried both in the same file, but I don't like the extra call stack from Try::Tiny in my stack traces, so I'm happy to take the time to remove it. But actually, none of my work projects are deployed on 5.40 yet. I need to convince my coworkers to make some time for it.