in reply to perl 5.16.0 released!

I really like the new __SUB__ keyword. Also I love yearly release cycle :)

Replies are listed 'Best First'.
Re^2: perl 5.16.0 released!
by ikegami (Patriarch) on May 22, 2012 at 05:34 UTC

    On why it's good...

    This leaks:

    sub outer { ... my $inner; $inner = sub { ... $inner->(...); ... }; $inner->(...); }

    This doesn't:

    sub outer { ... my $inner = sub { ... __SUB__->(...); ... }; $inner->(...); }

      Oh, crap. That explains a bug I was fighting with for a week.

      Memory leaks are minor. Compared to guard objects that don't go out of scope at the right time, and hang around too long, having nasty side effects when their DESTROY is called at the wrong time.