with grep:foreach my $line (@lines) { next if $line =~ /^QKC_/; #do something with $line }
@subset = grep(/^QKC_/, @lines);
In reply to Re: how to find all lines which do not start with something
by Anonymous Monk
in thread how to find all lines which do not start with something
by rabbit55
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |