in reply to Re: Use function as a regexin thread Use function as a regex
say 'perl Perl PERL' =~ /${ \Re::re() }/g;
Abusing the internal representation of regular expressions, this also seems to work:
say 'perl Perl PERL' =~ /${Re::re()}/g; [download]