If you have perl 5.10.0, you can use smart match instead:
if ($fields[6] ~~ qw("KOTB" "KBBA" "KBBC" "KBBM" "KBBT")){ ... }
Or you can use a regex match (with any perl version):
if ($fields[6] =~ m/\A"(?:KOTB|KBB[ACMT])"\z/){ .... }
In reply to Re: is this right ?
by moritz
in thread is this right ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |