Based on the Darwinian principle of survival of the fittest, genetic programming uses mutation and replication to produce algorithms for creating ever-improving computer programs. In this column, you'll get to know the genetic algorithm in simple terms. This article provides Perl implementations for some specific tasks, which you can adapt for generic use. To demonstrate the genetic algorithm, the author breeds numbers for fitness to a formula, and letters to form English words.