Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Use function as a regexby Anonymous Monk |
on Feb 15, 2018 at 16:50 UTC ( [id://1209238]=note: print w/replies, xml ) | Need Help?? |
You can probably use straight-up $str =~ re() syntax with global searches as well, just make sure the re() returns a :lvalue. Either that or return a ref: $str =~ ${re()}.
In Section
Seekers of Perl Wisdom
|
|