in reply to Re^3: When I see "10", I think:in thread When I see "10", I think:
Using octal for 16-bit values is that it isolates bit 15 nicely.
FFFF(hex) = 177777(oct)
8000(hex) = 100000(oct)
7FFF(hex) = 077777(oct)
0000(hex) = 000000(oct)
If the left-most hex digit is 8 or higher, the high bit is set.
Which doesn't help you read the next 15 bits.
That's all you got?
You dig up an old thread to say: "Using octal for 16-bit values is that it isolates bit 15 nicely."
And when you are shown that isolating the high bit in hex is trivial; you then say; "Oh, but it's not about the high bit; its about the other 15".
Were you bored and just came looking for a argument?
Well here it is. Translating hex nibbles to binary is child's play. Every programmer worthy of the name does in their head without thinking.
The advantage over octal is obvious. (hint:byte alignment).
Read a book on Perl
Written a book on Perl
Contributed to the Perl source code
Debugged someone else's script
Played Perl Golf
Used regular expressions to save the day
Used Perl for a certain amount of time (please specify)
Invested a certain amount of man-hours in learning Perl (please estimate)
Visited at least x Perl related events
(Co)maintain at least x active (up-river) CPAN modules
Forgotten you were not Larry Wall
One can never truly know Perl
Results (316 votes). Check out past polls.