I Tried to use a function in a replace regex but the function was considered as a dead string.
I tried something like:
$t =~ s/$somePattern/$1 becomes some_function($1)/g;
I know I can: split than map and than join,
but there's got to be a more process time friendly way,
like a way to include a function within a replace regex.