Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: One liner to subtract by 2

by hdb (Prior)
on Jul 24, 2013 at 14:34 UTC ( #1046134=note: print w/replies, xml ) Need Help??


in reply to One liner to subtract by 2

perl -pe "s/(\d{10})$/substr $1+9_999_999_998,-10/e"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1046134]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-01-23 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (194 votes). Check out past polls.