Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 scrutinizing the Monastery: (7)
As of 2016-02-12 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (395 votes), past polls