Notas:


Cool things: perl can serialize code from a pointer.
I use XML::Simple, which is, after all, not so simple and predictable. That will be the first thing to fall in the next iteration.
Just change the fitness function if you want to use the algorithm for anything else