Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Auto-increment and Auto-decrement

by Albannach (Monsignor)
on Jul 04, 2001 at 07:28 UTC ( #93767=note: print w/replies, xml ) Need Help??


in reply to Auto-increment and Auto-decrement

This is one of those little bits of "magic" that you find scattered all over Perl. It's simply that only autoincrement has the magical effect on text, autodecrement does not, so it sees your text as a numeric 0 (zero) and hence you get -1.

--
I'd like to be able to assign to an luser

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2023-06-07 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?