in reply to Re: foreach loop question
in thread foreach loop question
This makes an infinite loop (at least until your memory runs out), so it appears that foreach is actually using the original listmy @list = (1,2,3,4,5); foreach (@list) { print $_."\n"; push @list,$_.$_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: foreach loop question
by Mr. Muskrat (Canon) on Apr 16, 2003 at 22:06 UTC |