in reply to Re: scope of my $x in if statements
in thread scope of my $x in if statements

That's not equivalent. It can have a different result when f() returns something false

Replies are listed 'Best First'.
Re^3: scope of my $x in if statements
by mikeraz (Friar) on May 07, 2009 at 20:54 UTC

    Meaning if f() returns false and g(falsehood) returns true.
    Time to go work on my test case skills.


    Be Appropriate && Follow Your Curiosity

      That's only true if g() has no side-effects and no performance penalty.