Execute a Markov algorithm: Difference between revisions

m
→‎{{header|Raku}}: .perl not needed
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎{{header|Raku}}: .perl not needed)
Line 3,794:
=={{header|Raku}}==
(formerly Perl 6)
 
Run this without arguments and it will scan the cwd for rules.* files and their corresponding test.*.
 
Line 3,847 ⟶ 3,846:
my $ruleset = slurp($rulefile);
say $start_value.perl();
say run(:$ruleset, :$start_value, :$verbose).perl;
say '';
}
Line 3,856 ⟶ 3,855:
my $ruleset = slurp($rulefile);
my $start_value = slurp($input).trim-trailing;
say "starting with: $start_value.perl()";
say run(:$ruleset, :$start_value, :$verbose).perl;
}
Line 3,863 ⟶ 3,862:
my $ruleset = slurp($rulefile);
my $start_value = @pieces.join(" ");
say "starting with: $start_value.perl()";
say run(:$ruleset, :$start_value, :$verbose).perl;
}</lang>
 
2,392

edits