in reply to How do I use this Markov generator?

Just put the following:
this is an interesting text because this is what could be a more interesting text for us
into filename and call:
perl markov.pl filename
two or three times, comparing results. If you have bash, you can also do this:
perl markov.pl <<<'this is an interesting text because this is what could be a more interesting text for us'
Update: fixed stray sentence.

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.

Replies are listed 'Best First'.
Re^2: How do I use this Markov generator?
by Philmac (Novice) on Apr 20, 2007 at 02:26 UTC
    Thanks, I got it working now. Although, this program generates text based on words. How difficult would it be to make it generate text based on characters?
      Same level of difficulty
        Unfortunately I am very new to Perl and I do not have any understanding of Markov chains. What would one need to do to convert this program into a character-level Markov text generator?