Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:
I was thinking last night about how hexadecimal can store more info than decimal in the same number of chars. A six-digit number in hex can have up to 16,777,216 possible values.
I don't normally see other bases used, but there is another scheme which comes up from time to time, the kind of "alphabetical" system. I guess it's technically base 26.
If use use it, a six-digit number can have up to 308,915,776 possible values.
Is it used for anything? Perl can "count" using this scheme can't it? I mean I can do "for(AA..ZZ){$x++};print $x;" and get 676 for instance.
Does it have a name?
($_='jjjuuusssttt annootthhrer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does AA..ZZ have a name?
by mdillon (Priest) on May 04, 2002 at 02:01 UTC | |
by Cody Pendant (Prior) on May 04, 2002 at 02:18 UTC | |
by mdillon (Priest) on May 04, 2002 at 02:36 UTC | |
by mpolo (Chaplain) on May 04, 2002 at 07:35 UTC | |
|
Re: Does AA..ZZ have a name?
by seattlejohn (Deacon) on May 04, 2002 at 08:01 UTC | |
|
Re: Does AA..ZZ have a name?
by vagnerr (Prior) on May 05, 2002 at 13:24 UTC | |
|
Re: Does AA..ZZ have a name?
by boo_radley (Parson) on May 04, 2002 at 22:55 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |