Re: Some questions about miltislices and other things

2007-03-13 Thread Ryan Richter
On Mon, 12 Mar 2007 17:41:27 -0700, Larry Wall wrote: > On Fri, Mar 02, 2007 at 01:33:50PM -0500, Ryan Richter wrote: > : while ($_ = %state{@@w}.pick).say { > > You maybe don't want each word on a separate line... They did that in the original for some reason. In the unlikely event that I want

Re: Some questions about miltislices and other things

2007-03-12 Thread Larry Wall
On Fri, Mar 02, 2007 at 01:33:50PM -0500, Ryan Richter wrote: : As a little Perl 6 exercise I translated the Perl 5 Markov chain / : dissociated-press script from _The Practice of Programming_: : : http://cm.bell-labs.com/cm/cs/tpop/markov.pl : : Here's my Perl 6 attempt, with support for differe

Some questions about miltislices and other things

2007-03-02 Thread Ryan Richter
As a little Perl 6 exercise I translated the Perl 5 Markov chain / dissociated-press script from _The Practice of Programming_: http://cm.bell-labs.com/cm/cs/tpop/markov.pl Here's my Perl 6 attempt, with support for different prefix lengths. my $n = 2; # prefix lengt