in reply to remove current element out array
You seem to be just testing for the string 'test' at the front of each line. Just modify grep's conditional as appropriate.my @Array = grep {substr($_, 0, 4) ne 'test'} @Array;
Russ
P.S. You normally shouldn't modify the list used in a for(each).
|
|---|