>
> Marc wrote:
> i'm inclined to think that this is easier to read:
> method col:sym<quoted> ($/) { .make ~S:g/'""'/"/ }
>

That's not working for me. I'm on Moar (2021.06).
This Is what I get back (first error below, note the "grammar CSV" line is
the first line of the script, and method col:sym<quoted>  is on line 20):

No such method 'make' for invocant of type 'Any'.  Did you mean any of
these: 'Map', 'map', 'max', 'raku'?
  in method col:sym<quoted> at - line 20

Best Regards, Bill.


On Sat, Nov 20, 2021 at 12:22 AM Marc Chantreux <e...@phear.org> wrote:

> hello William,
>
> > method col:sym<quoted> ($/) { make $/.subst(/'""'/, '"', :global).Str }
>
> which is just a longuest version of the line Ralph wrote. i'm inclined
> to think that this is easier to read:
>
>     method col:sym<quoted> ($/) { .make ~S:g/'""'/"/ }
>
> > The following line seems to work just fine, with-or-without the call to
> > .Str at the end
>
> both works but if you don't use ~ or .Str, a match is returned. I
> noticed after i replied to Ralph.
>
> Thanks for helping,
> regards
>

Reply via email to