The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Algorithm::MarkovChain - Object oriented Markov chain generator

SYNOPSIS

use Algorithm::MarkovChain;

my $chain = Algorithm::MarkovChain::->new();

# learn about things from @symbols
$chain->seed(symbols => \@symbols,
             longest => 6);

# attempt to tell me something about the sky
my @newness = $chain->spew(length   => 20,
                           complete => [ qw( the sky is ) ]);

INSTALLATION

perl Build.PL
perl Build test

and if all goes well

perl Build install

HISTORY

What changed over the last 3 revisions

0.06 Sunday 9th March, 2004
Fix for rt.cpan.org #6259
Converted to Module::Build
0.03 Tue Oct 31 16:22:56 2000
- change in spew behavior, prevents infinite loops in the case
  that a chainset is self-referential
0.02 Mon Oct 09 17:54:00 2000
- test for existence of chains in spew to prevent looping

AUTHOR

Richard Clamp <richardc@unixbeard.net>

SEE ALSO

perl(1).