script/stupidmarkov-dissociator.pl untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use StupidMarkov;
7  
8 my $mm = StupidMarkov->new();
9  
10 while (my $line = <>) {
11 chomp($line);
12 next if (!defined($line));
13  
14 foreach my $word (split(/ /, $line)) {
15 $mm->add_item($word);
16 }
17 }
18  
19  
20 print $mm->get_next_item(), " " for (0 .. $mm->get_item_count());