Help for this page

Select Code to Download


  1. or download this
    sub andNeg {
      return (($_[0]^$_[1]) < 0);
    }
    
  2. or download this
    print "<table border>\n<tr><td>", join("</td><td>", "x", "y", "andNeg(
    +)", "spaceship()", "mult()", "anchor()"), "</td></tr>\n";
    for (0..3) {
    ...
      print "<tr><td>", join("</td><td>", $x, $y, andNeg($x, $y), spaceshi
    +p($x, $y), mult($x, $y), anchor($x, $y)), "</td></tr>\n";
    }
    print "</table>\n";
    
  3. or download this
    sub spaceship {
      (0 <=> $_[0]) == (0<=> $_[1]);
    ...
      }
      return 0;
    }
    
  4. or download this
    #!perl -w
    #
    ...
      }
      return @retval;
    }