Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: AI::Genetic gives me strange warnings

by halley (Prior)
on Feb 23, 2005 at 15:47 UTC ( #433726=note: print w/replies, xml ) Need Help??


in reply to AI::Genetic gives me strange warnings

There are two mechanisms by which you can get the sort arguments. One mechanism is to trust that package globals $a and $b (they're not lexicals) will be defined by perl for evaluation.

The other mechanism is to use a subroutine with a ($$) prototype; then the arguments $_[0] and $_[1] will be used instead.

Maybe the second mechanism is useful for a workaround in either the inner loop or outer loop?

--
[ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2023-12-05 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?