in reply to possible wierdness from "for @array"
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: possible wierdness from "for @array"
by hsinclai (Deacon) on Mar 31, 2009 at 17:18 UTC |