in reply to Re: problem with foreach
in thread problem with foreach

do you mean there is a difference between $b++ and $b ++ ?

Replies are listed 'Best First'.
Re^3: problem with foreach
by bart (Canon) on Jun 16, 2006 at 08:39 UTC
    Apparently, there isn't. But I had to test it.

    I just have a very hard time reading and understanding it — while it's just such a small thing. Bring on the huge expressions!

    Your whitespace isn't improving readability — on the contrary.

Re^3: problem with foreach
by Jasper (Chaplain) on Jun 16, 2006 at 11:37 UTC
    You should remember that there _is_ a difference betwixt ++$b and $b++, however. ++$b doesn't have the nuisance of making a copy of its original value to return before incrementing, and therefore it's slightly less efficient if, as in this case, you don't need to know what that value was.