Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Strange behavior with List::Util qw{first} on perl >= 5.20

by ikegami (Patriarch)
on May 27, 2015 at 14:42 UTC ( [id://1128006]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Strange behavior with List::Util qw{first} on perl >= 5.20
in thread Strange behavior with List::Util qw{first} on perl >= 5.20

There's something fishy about $_. It's a TEMP with REFCNT=1. I believe that means it's a mortal. If so, that means noone claims a reference to $_, but first still uses it after the callback returns. This points to a bug in List::Util.

That said, the inplace lc($_)[1] should probably only happen in void context.


  1. This is the first I've ever heard about this!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-18 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found