Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: BUG in warnings uninitialized for derefed hashes?

by dave_the_m (Monsignor)
on Oct 21, 2015 at 21:46 UTC ( [id://1145596]=note: print w/replies, xml ) Need Help??


in reply to BUG in warnings uninitialized for derefed hashes?

It's a limitation rather than a bug. By the time perl discovers that it has an uninitialised value, it has already executed a whole series of ops (pad variable load, deref, hash lookup, concat) that lead up to that point. I added the facility in 5.10.0 where at that point it backs up, searches back through the optree, and tries to figure out what was executed and what triggered loading the uninit value. This is based on a "reasonable effort", and is by no means comprehensive, as that would involve huge complexity.

Dave.

  • Comment on Re: BUG in warnings uninitialized for derefed hashes?

Replies are listed 'Best First'.
Re^2: BUG in warnings uninitialized for derefed hashes?
by LanX (Saint) on Oct 21, 2015 at 22:31 UTC
    > It's a limitation rather than a bug.

    I agree, but I needed to report it to rule out that a case was forgotten.

    Additionally others might stumble again over this, and now it's searchable.

    > I added the facility in 5.10.0

    Thanks a lot, it's a very useful feature :)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-19 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found