Re: Speed comparison of PHP vs. PERL (not conclusive)

From: Date: Fri, 31 May 2002 21:39:35 +0000
Subject: Re: Speed comparison of PHP vs. PERL (not conclusive)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100178@lists.php.net to get a copy of this message
I made an "oops!" when I wrote: > > prime.pl: > #!/usr/bin/perl > # print "2\n"; > my $num; > for ($num = 3; $num < 10000; $num+=2) > { > my $prime = 1; > for $check ( 2 .. int($num/2) ) > { > if ($num % $check == 0) > { > $prime = 0; > last; > } > } > # print "$num\n" if $prime; Disregard the comment characters there. I added them in after testing (to see how much of an effect the output made -- wasn't noticeable) and forgot to remove them when c+p'ing the source to the newsgroup. -- Daniel Grace

« previous php.general (#100178) next »