in reply to Re: how to find all lines which do not start with something
in thread how to find all lines which do not start with something
This is a nice trick, but I guess it will have to search through the entire line, not only the beginning, so it can be a bit slow.
Possibbilities are:
or simplymy @new = grep { rindex $_, 'QKC_', 0 } @orig;
my @new = grep { substr($_, 0, 4) ne 'QKC_' } @orig;
|
|---|