Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: perl 5.16.0 released!

by Anonymous Monk
on May 21, 2012 at 11:38 UTC ( [id://971599]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found