Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^11: How the auto-increment operator works?

by AnomalousMonk (Bishop)
on Aug 02, 2020 at 07:27 UTC ( #11120227=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    increment left col ("carry") <- '0' -> '1' -> .. '9' (digits)
                                     ^                |
    ...
                                     ^                |
                                     |                |
                                     +----------------+
    
  2. or download this
    c:\@Work\Perl\monks>perl -e "my $s = 'zZ9';  print qq{'$s' -> };  ++$s
    +;  print qq{'$s'};"
    'zZ9' -> 'aaA0'
    ...
    'zzzz9' -> 'aaaaa0'
    c:\@Work\Perl\monks>perl -e "my $s = 'ZZZZ9';  print qq{'$s' -> };  ++
    +$s;  print qq{'$s'};"
    'ZZZZ9' -> 'AAAAA0'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-11-27 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?