in reply to Re^3: Grep-Ternary Operator Question
in thread Grep-Ternary Operator Question
and with the code per your advice,
my $string = qq! first ! . ( (grep /blivitz/, @array) ? qq! yes ! : qq! no ! ) . qq! end !; print $string . " -last test, lines 27-30 \n";
Output is:
first no end -last test, lines 27-30As expected
|
|---|