grep /testme/, @array ? qq! yes ! : qq! no ! #### grep /testme/, ( @array ? qq! yes ! : qq! no ! ) #### grep(/testme/, @array) ? qq! yes ! : qq! no ! #### (grep /testme/, @array) ? qq! yes ! : qq! no ! #### grep /testme/, @array ? qq! yes ! : qq! no ! #### (grep /testme/, @array) ? qq! yes ! : qq! no ! #### my $string = qq! first ! . ( grep /testme/, @array ? qq! yes ! : qq! no ! ) . qq! end !; #### my $string = qq! first ! . ( (grep /testme/, @array) ? qq! yes ! : qq! no ! ) . qq! end !;