Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: incrementing strings

by Ben Win Lue (Friar)
on Mar 14, 2005 at 22:05 UTC ( #439474=note: print w/ replies, xml ) Need Help??


in reply to incrementing strings

Honestly, I don't have an idea, what do you want to achieve by incrementing john.smith1. IMHO ++ works only for numbers. Evaluating "john.smith1" as a number is resulting in 0 (zero). The increment of 0 is 1! So, your example looks OK to me.

Update:
Sorry, it was a bit late for magic last night. But it is an interesting feature.


Comment on Re: incrementing strings

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-09-16 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (157 votes), past polls