Help for this page

Select Code to Download


  1. or download this
    my $x=1;
    for(1,2,3,4,5) 
    ...
            .. (printf("flop at %s? %s\n",$_,$x?'yes':'no'),$x);
      print "$_\n";
    }
    
  2. or download this
    flip at 1? yes
    flop at 1? yes
    ...
    flop at 4? yes
    flip at 5? yes
    flop at 5? yes