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!