foreach $line (@array) { @temp = split(/ /,$line); if ( $temp[0] eq "test") { splice(@array, $current_element ,1); } } [download]
In reply to remove current element out array by Flyghost