in reply to Non-deterministic behaviour with simple array initialization

... which means that at some point suddenly @e is not undef anymore.
Not really :)
@x{1..2**31} = (); \%x Range iterator outside integer range at - line 1.
On win32, activeperl5.8.6 and strawberryperl5.10, I get no error messages, the script just keeps running (i kill after 10min)

It has something to do with c compilers, int size, malloc ... probably deterministic, but thats range operator abuse :)

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

    Hi anonymous monk,

    I don't get error messages on the other VM either, that's what makes this problem very strange to me ...

    The range iterator message is one of the rare ones :) the illegal division or the sudden execution of the print statement after the n'th while loop is much more 'likely'.

    Do you have a hint for me how I could narrow it further down? It's the default SuSE perl distribution, no custom stuff. Dop you think I should try to tackle it with valgrind or something?

    Thanks,
    Thomas