No such method 'prefix' for invocant of type 'Capture' when trying to patch a new library include path

2020-05-10 Thread Konrad Bucheli via perl6-users
Dear Raku experts I have a little patch which adds another library include path and installation site named "foo" which points to "/opt/foo/lib", see attached patch. That worked (in a similar fashion) well with 2020.02, but with 2020.05 it fails on the following test: $ cat foo.rakumod unit

Re: I need help with sub MAIN

2020-05-10 Thread ToddAndMargo via perl6-users
On 2020-05-05 12:28, yary wrote: Oops my example was missing the important $*USAGE message. And it makes sense to show the wrong named args before the wrong list args. example.raku:   multi sub MAIN(:$these ="These", :$are="Are") { say "$these $are"; };   multi sub MAIN(*@wrong-list,:$these =

How do I handle Getopt::Long stray entries?

2020-05-10 Thread ToddAndMargo via perl6-users
Hi All, https://modules.raku.org/dist/Getopt::Long:cpan:LEONT How do I handle stray entries (unknown options) without crashing? Is there some grab bag I can stick all those into? $ GetOptLongTest.pl6 --SomethingExtra Unknown option SomethingExtra in sub get-option at /opt/rakudo-pkg/share/p

Re: How do I handle Getopt::Long stray entries?

2020-05-10 Thread Peter Pentchev
On Sun, May 10, 2020 at 06:20:02PM -0700, ToddAndMargo via perl6-users wrote: > Hi All, > > https://modules.raku.org/dist/Getopt::Long:cpan:LEONT > > How do I handle stray entries (unknown options) without > crashing? Is there some grab bag I can stick all > those into? When something signals a