If you do care:@array = grep { $_ != 5 } @array;
my @thrownaway; @array = grep { if ( $_ == 5 ) { push @thrownaway, $_; 0 } else 1; } @ +array;
In reply to Re: Help me not use codefor($i=0;$i=$#array;$i++)/code...Please!
by Masem
in thread Help me not use for($i=0;$i=$#array;$i++)...Please!
by IraTarball
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |