On Tue, Oct 08, 2002 at 10:00:09AM -0700, Anil Shekhar wrote:
> Thanks Mark.
>
> I mean how is the following possible.
>
> print ++($foo = 'Az'); # prints 'Ba'
> print ++($foo = 'zz'); # prints 'aaa'
(I'm obviously not Mark, but I figure I'll give this a shot)
That's how the
ing, preserving each character within its
range, with carry:"
-Original Message-
From: nkuipers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: RE: autoincrement and autodecrement
That's still not terribly specific. Actually the
nts 'Ba'
>print ++($foo = 'zz'); # prints 'aaa'
>
>Thanks
>Anil
>
>- Original Message -
>From: "Mark Anderson" <[EMAIL PROTECTED]>
>To: "Anil Shekhar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>S
t;Anil Shekhar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 9:56 AM
Subject: RE: autoincrement and autodecrement
> "Can someone help me please?"
>
> Can you be more specific about what you don't understand?
>
> I
"Can someone help me please?"
Can you be more specific about what you don't understand?
If $foo is a string of alpha characters and you use ++ you get a string with
the last character incremented alphabetically.
This does not work both ways, -- does not reverse the effect of ++ on
strings.