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

Re: Increment a string with letters and numbers

by jwkrahn (Monsignor)
on Mar 28, 2013 at 08:56 UTC( #1025906=note: print w/replies, xml ) Need Help??


in reply to Increment a string with letters and numbers

$ perl -le'$_ = "EVO:0000023"; print; substr( $_, -7 )++; print' EVO:0000023 EVO:0000024

Replies are listed 'Best First'.
Re^2: Increment a string with letters and numbers
by mrguy123 (Hermit) on Mar 28, 2013 at 09:01 UTC
    Nicely done :)
    Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2016-08-30 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (418 votes). Check out past polls.