in reply to [perlre] appending a "." to numbers inside word boundaries
It actually works, but '-n' is not the right option for you. You should also rather use $1 instead of \1.
$ perl -ne 's{\b(\d+)\b}{$1.}g;print' moves # or just $ perl -pe 's{\b(\d+)\b}{$1.}g' moves
See perlrun for details
--
|
|---|