Skip Menu |

This queue is for tickets about the Algorithm-Evolutionary-Simple CPAN distribution.

Report information
The Basics
Id: 123449
Status: open
Priority: 0/
Queue: Algorithm-Evolutionary-Simple

People
Owner: Nobody in particular
Requestors: quantum.mechanic.1964 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.0.3
Fixed in: (no value)



Subject: Documentation mentions hashref but example uses arrayref.
1) In the blurb for produce_offspring, the first parameter is described as a hashref, but the example in the synopsis uses an arrayref. produce_offspring( $population_hashref, $how_many_I_need ) 2) The example plays fast and loose with identifiers. @population is used, then later @pool, but should apparently be @population. 3) rnkeytop seems to take a code block, a length, and a list of population entries, though the fat comma is going to be misinterpreted. If the user is meant to supply rnkeytop, please call it something generic. (It's not mentioned anywhere else on the page.)
El Lun Oct 30 12:44:20 2017, qm escribió: Show quoted text
> 1) In the blurb for produce_offspring, the first parameter is > described as a hashref, but the example in the synopsis uses an > arrayref. > > produce_offspring( $population_hashref, $how_many_I_need ) >
That's a good one. Thanks! Show quoted text
> 2) The example plays fast and loose with identifiers. @population is > used, then later @pool, but should apparently be @population.
Hum. @pool is used to generate a new population. I'll check it out, anyway. Show quoted text
> > 3) rnkeytop seems to take a code block, a length, and a list of > population entries, though the fat comma is going to be > misinterpreted. If the user is meant to supply rnkeytop, please call > it something generic. (It's not mentioned anywhere else on the page.)
No, that comes from a fast sorting library I'm using.