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

Subset w/ Inline::Perl5 RE as constraint

Thread Next
Paul Procacci
November 6, 2020 04:23
Subset w/ Inline::Perl5 RE as constraint
Message ID:

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,


:(){ :|:& };:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About