note
choroba
You start with <c>$w == 0</c>. You post-increment it, which means before changing its value, you perform the <c>|| die</c> test. Therefore, <c>0 || die</c> goes the "or" way and dies. Since there was no system failure immediately before the death, the value of $! is meaningless, as documented in [doc://perlvar#$OS_ERROR|Perl Predefined Variables / $OS_ERROR].
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-832495">
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
</div></div>
992131
992131