Named parameters must come after all positional parameters. Your example subroutine is invalid for this reason, while the following would be fine:
sub abcdefg( $b, $f, $g, :$a, :$c, :$e) abcdefg("position1", "position2", "position3", :e("named_e"), :a("named_a"), :c("named_c")); On Sun, Feb 9, 2020 at 6:24 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 2020-02-09 14:53, Paul Procacci wrote: > > subchdir(IO() $path, :$d=True, :$r, :$w, :$x-->IO::Path:D) > > Hi Paul, > > What I wanted to see is how something liek > > sub abcdefg( :$a, $b, :$c, :$e, $f, $g ) > > would be called > > -T > -- __________________ :(){ :|:& };: