On 8/31/06, Luke Palmer <[EMAIL PROTECTED]> wrote:
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 seem to recall

   $foo.subst(/:g bar/, "baz")

is valid syntax already.
~jerry

Reply via email to