in reply to how to find all lines which do not start with something
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to find all lines which do not start with something
by ambrus (Abbot) on Sep 17, 2004 at 09:13 UTC | |
|
Re^2: how to find all lines which do not start with something
by gaal (Parson) on Sep 17, 2004 at 08:44 UTC |