in reply to Re^2: Printing two variables in the same line
in thread Printing two variables in the same line

Hmm, I don't think I was being clear enough. The author had:

if { } else { };

I'm not talking about having a semi-colon at the end of the last statment in a block. I'm talking about having a semi-colon AFTER the closing curly brace at the end of the block.

Replies are listed 'Best First'.
Re^4: Printing two variables in the same line
by Smylers (Pilgrim) on Oct 07, 2004 at 21:18 UTC
    I'm not talking about having a semi-colon at the end of the last statment in a block. I'm talking about having a semi-colon AFTER the closing curly brace at the end of the block.

    That was clear to me! Personally I never put a semicolon after a block. But then I often forget to put one at the end of an eval statement. So perhaps if I had a coding style that put a redundant semiclon after all blocks then I wouldn't forget them where necessary?

    Smylers
Re^4: Printing two variables in the same line
by JediWizard (Deacon) on Oct 07, 2004 at 21:17 UTC

    Ahh Soo. :-) You are most correct that a semi-colon following the } is quite unnecessary.

    May the Force be with you