in reply to Re: Use function as a regex
in thread Use function as a regex
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()}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use function as a regex
by Eily (Monsignor) on Feb 15, 2018 at 17:17 UTC | |
by Anonymous Monk on Feb 15, 2018 at 18:29 UTC |