Is foreach statement iterate in order or it might be random order?

Posted by ablimit on Stack Overflow See other posts from Stack Overflow or by ablimit
Published on 2010-04-30T21:32:08Z Indexed on 2010/04/30 21:37 UTC
Read the original article Hit count: 163

Filed under:
|
|

I was wondering if the foreach statement in perl iterates the items in an array in consistent order ? That is, do I get different results if I use foreach multiple times on the same array or list ?

Thanks.

© Stack Overflow or respective owner

Related posts about perl

Related posts about foreach