in reply to Multiple condition IF statement using grep and eq
Tip #6 from the Basic debugging checklist: B::Deparse
perl -MO=Deparse,p if (grep(($_ == $F[1]), 73, 89, 121, 101, 117, 69, 77, 67, 115, 81, 97 +, 65, $inext eq 'Global.SAM')) {
Change your code to:
if ( (grep $_ == $F[1],73,89,121,101,117,69,77,67,115,81,97,65,113) && + ($inext eq "Global.SAM") ) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiple condition IF statement using grep and eq
by Anonymous Monk on May 04, 2016 at 17:11 UTC | |
by Marshall (Canon) on May 04, 2016 at 17:23 UTC |