class Prime {
has @!primes is rw;
has Int $!number is rw = 1;
method next() {
my $not_prime = 1;
while($not_prime && $!number++) {
$not_prime = @!primes.grep({$!number % $^a == 0});
}
Appears that last assignment changes $not_prime.WHAT from "Int" into
"Array".
a
-------------------
Andy Bach
Systems Mangler
Internet: [email protected]
Voice: (608) 261-5738; Cell: (608) 658-1890
Straw? No, too stupid a fad. I put soot on warts.
