Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl slower than java

by Anonymous Monk
on Dec 08, 2010 at 22:28 UTC ( [id://876128]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub gene_length {
        my @gls = sort map { length } keys %genome;
        die "Invalid genotype" unless $gls[0] == $gls[$#gls];
        return $gls[0];
    }
    
  2. or download this
    use List::Util 'first';
    sub check_for_winner {
        return first { get_result($_) == $target } @population
    }
    
  3. or download this
    use List::Util 'sum';
    sub get_population_fitness_score {
        return sum map { get_fitness_score($_) } @population;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://876128]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found