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 rjt (Deacon)
on Jul 24, 2013 at 14:08 UTC ( #1046124=note: print w/ replies, xml ) Need Help??


in reply to One liner to subtract by 2

echo 0TONYHLDGS201307240901201307240000000496 | perl -pe 's/(\d{10})$/sprintf("%01 0d",$1-2)/e'
0TONYHLDGS201307240901201307240000000494
Comment on Re: One liner to subtract by 2
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-04-29 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (439 votes). Check out past polls.