What is the expected scope of @array if $cond is false? I'd appreciate if someone could share some thoughts about this.
Background: on a very old Perl version, I ran into a problem where the old content of @array shows up after the first push (not before it!) when I enter the block a second time. Unfortunately I cannot reproduce it in a short script. The effect is only visible in a ~5k lines script. But there I can reproduce it every time I run the code.