push( @blah, $lines[ $#lines - splice( @range, int rand @range, 1 ) ] )
You are deleting items from an array you are iterating over, before or after the cursor. That's going to cause trouble. Don't do that.
In reply to Re: possible wierdness from "for @array"
by moritz
in thread possible wierdness from "for @array"
by hsinclai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |