Re: probably worth a bug report ?

2022-01-02 Thread Elizabeth Mattijsen
Maybe first explain why the error: When you specify a Pair as such as an argument, it is interpreted as a *named* argument. $ raku -e 'sub a(|c) { dd c }; a b => 42' \(:b(42)) So thus you can see why the error is thrown: you passed 0 positional arguments to the subroutine, and it neve

update: meta data in Pod Block

2022-01-02 Thread Richard Hainsworth
tl;dr Found a workaround. Raku documentation about meta / config data is subtly wrong. I'm writing a PR to modify documentation. Long version: As per my previous email, the documentation in docs.raku.org about POD6 says that configuration data provided on lines after a POD6 declaration has

Re: probably worth a bug report ?

2022-01-02 Thread Marc Chantreux
Le Sun, Jan 02, 2022 at 12:32:46PM +0100, Elizabeth Mattijsen a écrit : > Maybe first explain why the error thanks for the explaination. especially > $ raku -e 'sub a(|c) { dd c }; a b => 42' > \(:b(42)) now my sub works the way I wanted: sub got (|c) { for c.hash.kv -> $rule ,$inpu

Re: update: meta data in Pod Block

2022-01-02 Thread Ralph Mellor
On Sun, Jan 2, 2022 at 8:00 PM Richard Hainsworth wrote: > > What does not work (in that 'newkey' is not found in the 'config' part > of the Pod::Block returned by $=pod > > =head1 :key > > = :newkey I just tried that with Rakudo v2031.03 and got a compile time error for this line: = :newkey Pr

Re: probably worth a bug report ?

2022-01-02 Thread Ralph Mellor
cf https://www.nntp.perl.org/group/perl.perl6.users/2021/04/msg9883.html -- love, raiph On Sun, Jan 2, 2022 at 7:35 AM Marc Chantreux wrote: > > hello rakoons, > > I got this error message > > Too few positionals passed; expected 1 argument but got 0 > in sub xxx at - line 1 >