King James Programming: Markov chain trained on the Bible and a comp sci textbook

You may have to move to a higher order Markov chain. This program is just order 1, which rarely generates anything of interest. Sadly, I know not of Perl.