I don't know to what extent Perl is optimised, but I suppose accessing a member of an array is somewhat slower than accessing a private variable. And especially if the indexing takes place inside a loop. So how about this:
if ( defined($array[0]) ) { my $array0 = $array[0]; foreach ( @numbers ) { next unless $array0 == $_; print "FOUND<p>"; } }
--bwana147
In reply to Re: slow CGI's
by bwana147
in thread slow CGI's
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |