in reply to Flip-flop reset?
Interesting question. I'm not sure of the answer, but a kludgey workaround is to always make sure you start with something that will cause the flip-flop to reset:
foreach ( "\n",@arr ) { ...
In Section
Seekers of Perl Wisdom