On Thu, May 1, 2008 at 10:15 AM, <[EMAIL PROTECTED]> wrote:
> Hi Members,
> Can someone explain why the foreach loop did not iterate 10 times.
snip
> foreach (@data){
> splice @data,0,1;
> print "printing [EMAIL PROTECTED] = @data\n";
> }
snip
Mucking about with the array being iterated over breaks the iterator.
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/