in reply to can't remove all zeroes from an array
while ( $i <= $#arry) { if ($arry[$i] == 0) {splice @arry, $i,1;} else {$i++;} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: can't remove all zeroes from an array
by bart (Canon) on Aug 10, 2007 at 00:26 UTC |