Answers

  1. $x = ($x | ($y << 3));

  2. ((($y % 4) == 0) && (($y % 100) != 0)) || (($y % 400) == 0)
    (This computes whether or not the year $y is a leap year.)

  3. $V = ((4/3)*$PI*($r**3));
    (Volume of a sphere with radius $r.)

  4. ($x >= 1) || ($x <= 10)

Return to: Universe of Discourse main page | What's new page | Perl Paraphernalia | Precedence Problems

mjd-tpj-precedence@plover.com