In regexes with :P5 compatibility turned-on, do embedded modifiers work?

2021-05-22 Thread Joseph Brenner
It's looking to me like perl5's embedded pattern modifiers don't work when used with raku's :P5 compatibility modifier... printf "%-25s", "Trying raku style: "; if "this" ~~ m/ ^ <[a..z]> / { say "good"; } else { say "ng"; } printf "%-25s", "Trying :P5 without (?^x: "; if "this" ~~ m:P5/^

Re: File::Find using a junction with exclude

2021-05-22 Thread Joseph Brenner
Vadim Belman wrote: >> Joseph Brenner wrote: >> >>> I just gave a few other variants a try-- passing a junction in a >> variable, passing a code block containing a [junction]-- without any >> luck. > To my view, this behavior of File::Find is going against DWIM and is > certainly LTA. Thanks,

Re: File::Find using a junction with exclude

2021-05-22 Thread Joseph Brenner
Ralph Mellor wrote: > A junction passed as an argument is immediately expanded unless > a function is specifically coded to handle junctions for that argument. > > That is a large part of the beauty of the junction design. All functions > (and thus all operators) automatically get a very useful a