in reply to Re: In-place regex substitutionin thread In-place regex substitution
You might prefer sprintf instead of substr in order to just shorten the digits after the point.
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :) Je suis Charlie!