in reply to Re: Variable scope issue
in thread Variable scope issue

The second open works and it is not @temp the issue, as I have verified both.

It is really $score, as its previous initialization is not considered inside the IF.

Replies are listed 'Best First'.
Re^3: Variable scope issue
by GrandFather (Saint) on Jun 26, 2019 at 21:11 UTC
    as I have verified both

    How? Unless there is a substantial bug in the version of Perl you are using, your assertion "as its previous initialization is not considered inside the IF" is wrong.

    What version of Perl are you using and on what platform?

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
Re^3: Variable scope issue
by Anonymous Monk on Jun 26, 2019 at 18:14 UTC