Dear monks,
my @problems = (1,2,3); for my $problem (@problems) { push @problems, $problem if $problem; }
I expected this to work, because a for loop gets it's items before the first loop run but it turned out to be a infinitive loop because the newly pushed problems are also processed.
Thanks for your ideas,
Sewi
In reply to push in for loop by Sewi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |