Help for this page

Select Code to Download


  1. or download this
    for(1..10){
      $x= $_ > 5 && 'foo' || 'bar';
      print "$_:$x\n";
    }
    
  2. or download this
    print"$_:${[$_>5&&'foo'||'bar']}[0]\n"for 1..10;