On 8/31/06, Juerd <[EMAIL PROTECTED]> wrote:
Still, though, How would you specify :g? It doesn't make a lot of sense on rx// -- just like you can't use it with qr// in Perl 5.
It is a good point that it doesn't belong on the regex. Perhaps: $foo.subst(/bar/, "baz", :g) That seems to work, though the weight is at the front again. Oh. $foo.subst(:g, /bar/, "baz")
I don't think using a method (even if called "s") is good huffman coding. My expectation is that copying substitution will be used much - perhaps even more than mutating substitution!
And so a method called "s" is poor huffman coding... why? (I do agree with your frequency conjecture) Luke