perl 'advancing' variable facility..
- From: pande_vineet@xxxxxxxxxxx (Vineet Pande)
- Date: Wed, 25 May 2005 10:27:11 +0000
Hi:
I don't understand the way perl 'advances' the variables along the range a-z, A-Z, and 0-9.
For example from a book
$a = "A9"; print ++$a, "\n";
gives B0 as expected,
but, $a = "Zz"; print ++$a, "\n";
gives AAa.
Why?? why not Aa only!
also $a = "9z"; print ++$a, "\n";
gives 10. and why not 0a?
Thanks in advance V
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
.
- Follow-Ups:
- Re: perl 'advancing' variable facility..
- From: Paul Johnson
- Re: perl 'advancing' variable facility..
- Prev by Date: Re: how to efficiently sort hash without using keys()
- Next by Date: Re: how to efficiently sort hash without using keys()
- Previous by thread: how to efficiently sort hash without using keys()
- Next by thread: Re: perl 'advancing' variable facility..
- Index(es):