in reply to Re^2: Multiple condition IF statement using grep and eq
in thread Multiple condition IF statement using grep and eq
Also consider the block form of grep:
"and" is a lower priority operator than "&&" so no extra parens required.if ($inext eq "Global.SAM" and grep{$_ == $F[1]} 73,89,121,101,117,69,77,67,115,81,97,65,113) {}
|
|---|