I Tried to use a function in a replace regex
The second half of the substitution operator (s///) is just a string, not a regex.
One way to do it is:
$t =~ s/$somePattern/@{[ some_function($1) ]}/g;
In reply to Re: using functions within regex
by jwkrahn
in thread using functions within regex
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |