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

Great, thx! :)

Replies are listed 'Best First'.
Re^3: In-place regex substitution
by LanX (Saint) on Dec 09, 2016 at 21:59 UTC
    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!