Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 romping around the Monastery: (7)
As of 2015-07-02 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (30 votes), past polls