Unless Python also requires that all variable initializations happen before any other statements in a method/function, its lack of block scoping is absolutely irrelevant. It doesn't matter whether the scope of $faultsInaRow is the block, the loop or the method. It should have been caught as a typo, because it was not mean as an initialization. It should have been merely an assignment.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^5: Opinion: where Perl5 wasn't attractive for me
by Jenda
in thread Opinion: where Perl5 wasn't attractive for me
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |