Help for this page

Select Code to Download


  1. or download this
    grep /testme/, @array ? qq! yes ! : qq! no !
    
  2. or download this
    grep /testme/, ( @array ? qq! yes ! : qq! no ! )
    
  3. or download this
    grep(/testme/, @array) ? qq! yes ! : qq! no !
    
  4. or download this
    (grep /testme/, @array) ? qq! yes ! : qq! no !
    
  5. or download this
    grep /testme/, @array ? qq! yes ! : qq! no !
    
  6. or download this
    (grep /testme/, @array) ? qq! yes ! : qq! no !
    
  7. or download this
    my $string = qq! first !
            . ( grep /testme/, @array ? qq! yes ! : qq! no ! )
            . qq! end !;
    
  8. or download this
    my $string = qq! first !
            . ( (grep /testme/, @array) ? qq! yes ! : qq! no ! )
            . qq! end !;