Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Auto-increment and Auto-decrement

by John M. Dlugosz (Monsignor)
on Jul 04, 2001 at 03:28 UTC ( [id://93766]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Auto-increment and Auto-decrement

The perlop man page states,
The auto-increment operator has a little extra builtin magic to it. If you increment a variable that is numeric, or that has ever been used in a numeric context, you get a normal increment. If, however, the variable has been used in only string contexts since it was set, and has a value that is not the empty string and matches the pattern...
It doesn't say the decrement works the same way. Too bad; one would think so without reading the docs carefully.

—John

update: see Magical Auto-Decrement.

Replies are listed 'Best First'.
Re: Re: Auto-increment and Auto-decrement
by kiseok7 (Beadle) on Jul 04, 2001 at 07:52 UTC
    very thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://93766]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.