while ( $i <= $#arry) { if ($arry[$i] == 0) {splice @arry, $i,1;} else {$i++;} }
In reply to Re: can't remove all zeroes from an array
by ikegami
in thread can't remove all zeroes from an array
by orange
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |