in reply to Re^2: In-place regex substitution
in thread In-place regex substitution

Are you sure that a number can't have more than 9 digits before the point?

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!