Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: One liner to subtract by 2

by hdb (Parson)
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"


Comment on Re: One liner to subtract by 2
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-07-22 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (130 votes), past polls