There's more than one way to do things | |
PerlMonks |
Re^2: AI::Genetic gives me strange warningsby fizbin (Chaplain) |
on Feb 23, 2005 at 04:30 UTC ( [id://433570]=note: print w/replies, xml ) | Need Help?? |
Right - the second time you try that sort, $a and $b are undef each time the block is evaluated. Furthermore, it appears that sort-within-sort only breaks if the inner sort is in a different package than the outer sort, as you'll notice that when I do the sort myself (inside main) there's no problem. Also, see my other reply that exhibits this phenomenon without using AI::Genetic.
In Section
Seekers of Perl Wisdom
|
|