Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: In-place regex substitution

by lmocsi (Novice)
on Dec 09, 2016 at 21:45 UTC ( [id://1177572]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1177572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found