in reply to When was $@ scope in sigdie fixed?

Version 5.14 is the exact value you're looking for, per the changelog notes at Exception Handling. This version can be enforced in code where this is a mandatory requirement with the stanza:

require v5.014_000;
.. which will cause code to die when that stanza is hit (or substitute use for require to make that a compile-time check, although IIRC that also enables some optional features as of that version by default as well.)

Replies are listed 'Best First'.
Re^2: When was $@ scope in sigdie fixed?
by ikegami (Patriarch) on Dec 08, 2015 at 21:07 UTC

      You're right that the first of your suggested forms is the recommended method for maximum comparability.

      Incidentally, any of those 3 forms work counting mine, at least in reasonably-recent Perl versions (though I'm not exactly sure how old would break with that.) I had intended for the form that dropped the leading v as the documentation says it's more backwards-compatible, but there it is.

Re^2: When was $@ scope in sigdie fixed?
by Boldra (Curate) on Dec 07, 2015 at 14:12 UTC