See the specific grep-map code in my other answer. For this requirement, you would simply add a negative match to the grep block:
my @ids = grep { defined $_ && $_ !~ m{AA1X32ALFC60JT8} } map { match_ +id($_) } @lines_from_file;
Bye
PetaMem All Perl: MT, NLP, NLU
In reply to Re^3: Regex help
by PetaMem
in thread Regex help
by perlnoobster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |