Not so perfect, in any event. Here's a snippet of a debugging session
You'd have to doDB<1> $t = 'teach an old dog new tricks' DB<2> $t =~ s/(dog)/@{[ reverse($1) ]}/g DB<3> x $t 0 'teach an old dog new tricks'
$t =~ s/(dog)/@{[ scalar(reverse($1)) ]}/g
In reply to Re^3: using functions within regex
by jpl
in thread using functions within regex
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |