Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by AnomalousMonk (Archbishop)
on Aug 02, 2020 at 07:27 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120227]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found