![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Auto-increment and Auto-decrementby Albannach (Monsignor) |
on Jul 04, 2001 at 07:28 UTC ( #93767=note: print w/replies, xml ) | Need Help?? |
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.
--
In Section
Seekers of Perl Wisdom
|
|