in reply to Re: Paranormal leakage of previous value from conditionally set lexical variable
in thread Paranormal leakage of previous value from conditionally set lexical variable

(OP here)

Thanks, so at least it is known and documented.

I don't like the fact that as opposed to your code, I don't get any warning, the code just silently fails, and that this behavior is in Perl since at least 5.8, and according to the diagnostic message it is a known bug that they meant to fix but didn't.

  • Comment on Re^2: Paranormal leakage of previous value from conditionally set lexical variable

Replies are listed 'Best First'.
Re^3: Paranormal leakage of previous value from conditionally set lexical variable
by stevieb (Canon) on Mar 09, 2016 at 19:58 UTC

    This won't help in your case, but fwiw, Perl::Critic catches this.