I'm pretty sure you need to use single quotes for your example, as Raku will replace the @_[0] before Perl has a chance to do anything with it.
On Thu, Nov 5, 2020, 10:23 PM Paul Procacci <pproca...@gmail.com> wrote: > https://github.com/niner/Inline-Perl5 > > use Inline::Perl5; > > subset test of Str where EVAL "sub {@_[0] ~= m/\w+/}", :lang<Perl5>; > > > Question: Can you pass whatever {*} into eval for use in Inline::Perl5 a > la subset? > The above example is incomplete, I understand, however I'm looking to find > a method of constraining Str's w/ >perl5.8 RE's in subset's without it > getting too crazy. > > The RE's that come w/ raku proper are are much older version of RE and > cannot accomplish what I need. > > Thanks in Advance, > ~Paul > > -- > __________________ > > :(){ :|:& };: >