Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Clear questions and runnable code
get the best and fastest answer
 
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


Comment on Re: Increment a string with letters and numbers
Download Code
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 meditating upon the Monastery: (7)
As of 2014-04-25 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (579 votes), past polls