Perl keeps telling me "Use of uninitialized value in modulus (%)" in this line where I have an if statement (and no modulus).
If I change that line to remove the part after the &, it works fine... both of the variables are defined if I try to print them somewhere near there.
for($x = $prevmax;$x<=$max;$x++)
$n = sqrt($x);
$i = 0;
while ($x%$p[$i] !=0)
if (($n < $p[$i]) & ($x > $p[-1])) # error here
print (1 & ($x > $p[-1]));
Could anyone help me?
Considered by xdg: "retitle 'uninitialized value in modulus'"
Unconsidered by davido: Final vote of 11/26/0 indicated significant opposition to retitling.