On Monday 27 September 2010 09:40:43 HACKER Nora wrote: > Hi Michael, > > > > Thanks for your fast reply. I didn't realize that the shift is of > immediate effect not only to the array but also to the current element > of iteration in the loop itself. >
It may be. However, that is besides the point that one should not modify an array while one is iterating over it using foreach. Please think of a better way to achieve this. Furthermore, please configure you E-mail user agent to reply inline, and not top-post: http://en.wikipedia.org/wiki/Posting_style Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Optimising Code for Speed - http://shlom.in/optimise <rindolf> She's a hot chick. But she smokes. <go|dfish> She can smoke as long as she's smokin'. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/