index returns 0 (i.e. false) if the string starts with 'QKC_', so those lines will not be returned by grepmy @new = grep { index $_, 'QKC_' } @orig;
In reply to Re: how to find all lines which do not start with something
by ishnid
in thread how to find all lines which do not start with something
by rabbit55
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |