* die, warn, and $@ have been greatly simplified to eliminate long-standing edge cases and action at a distance

Now that's a change I really like, and look forward to rely on it.

From perl5131delta:

Several changes have been made to the way die, warn, and $@ behave, in order to make them more reliable and consistent.

When an exception is thrown inside an eval, the exception is no longer at risk of being clobbered by code running during unwinding (e.g., destructors). Previously, the exception was written into $@ early in the throwing process, and would be overwritten if eval was used internally in the destructor for an object that had to be freed while exiting from the outer eval. Now the exception is written into $@ last thing before exiting the outer eval, so the code running immediately thereafter can rely on the value in $@ correctly corresponding to that eval.

Likewise, a local $@ inside an eval will no longer clobber any exception thrown in its scope. Previously, the restoration of $@ upon unwinding would overwrite any exception being thrown. Now the exception gets to the eval anyway. So local $@ is safe inside an eval, albeit of rather limited use.

It's one of those weaknesses I (and others) have been whining about for years, so I'm glad to see it's gone.

A big "thank you" goes to p5p and everybody who has contributed to it.

P.S. the perldelta link is broken until perldoc.perl.org is updated, you can read it on github in the mean time.

Perl 6 - links to (nearly) everything that is Perl 6.

In reply to Re: Perl 5.13.1 is available by moritz
in thread Perl 5.13.1 is available by JavaFan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.