in reply to Re: [NOT] How would you decode this?
in thread [NOT] How would you decode this?

One problem is that vec doesn't handle 24-bit values.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: [NOT] How would you decode this?
by jethro (Monsignor) on Dec 28, 2010 at 16:10 UTC
    Oh, then the perl man page I consulted is deficient: perldoc -f vec says "This must be a power of two from 1 to 32". But a quick test shows that you are right

      24 is not really a power of two :)

        Ah right, I was thinking about the cutoff point being at 2^24 and that is a power of two. Really self-evident ;-)) Doh

      24 isn't a power of 2.