in reply to Non-deterministic behaviour with simple array initialization

Does moving the my @e; outside the outer loop make any difference?

Update: Yes, that's what I meant. I wanted to check whether it's in any way related to the repeated recreation of the @e variable. Looks like it isn't. Could you try to stick one more variable declaration right after the my $i = 0;? To add some padding between $i and @e.

Replies are listed 'Best First'.
Re^2: Non-deterministic behaviour with simple array initialization
by thkarcher (Novice) on Sep 25, 2008 at 23:25 UTC

    Hi Jenda,

    you mean, right before the while(1)? No, same effect.

    Update: I changed it like this:

    my $i = 0; my $pad = 'padding'; my $pad2 = 42; my @e; BIGLOOP: while (1) {

    Is that what you meant? The problem is still there ...