develooper Front page | perl.perl6.users | Postings from November 2020

Subset w/ Inline::Perl5 RE as constraint

Thread Next
From:
Paul Procacci
Date:
November 6, 2020 04:23
Subject:
Subset w/ Inline::Perl5 RE as constraint
Message ID:
CAFbbPuiRUraTBt6ezXaF1ko=NGb=OYqig3rB_n7PhyrvhieXdA@mail.gmail.com
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

-- 
__________________

:(){ :|:& };:

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About