- or download this
flip at 1? yes
flop at 1? yes -> Would return false, but must return true once.
...
flop at 2? yes -> Would return false, but must return true once.
flip at 2? yes
flop at 2? yes -> Would return false, but must return true once.
- or download this
my $x=1;
my $y=0;
...
.. (printf("flop at %s? %s\n",$_,$y?'yes':'no'),$y);
print "$_\n";
}
- or download this
flip at 1? yes
flop at 1? no -> Returns true.
...
flop at 3? no -> Returns true.
flop at 4? no -> Returns true.
flop at 5? no -> Returns true.