more useful options | |
PerlMonks |
Re: Different behaviour of count++ or misunderstanding?by hdb (Monsignor) |
on Apr 11, 2014 at 09:39 UTC ( [id://1081937]=note: print w/replies, xml ) | Need Help?? |
In the first iteration $count++ evaluates to zero and thus the and short-circuits and the push is not executed. If you compare the contents of @test_array in both cases you will see that the first element is missing.
In Section
Seekers of Perl Wisdom
|
|