Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: When was $@ scope in sigdie fixed?

by Apero (Scribe)
on Dec 07, 2015 at 11:56 UTC ( [id://1149565]=note: print w/replies, xml ) Need Help??


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 (Deacon) on Dec 07, 2015 at 14:12 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1149565]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-23 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found