in reply to Match entire string, not just first character
my @list = ('A test line', 'foo bar', 'A pdb file that I have', 'this other thing'); foreach my $item (@list) { if (substr($item, 0, 10) ne 'A pdb file') { print "$item\n"; # Or do whatever... } }
|
|---|