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
In reply to Re^4: Grep-Ternary Operator Question
by ww
in thread Grep-Ternary Operator Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |