好吧,抱歉我以为看懂了原来还是没明白... :P 我之前一直想的是数字,而不是数位。 尤其这句: $index *= 4; # 左移两位
希望我这次是真明白点了。。。 //blush... On 9月23日, 下午9时50分, msmouse <[email protected]> wrote: > 不是32位是30位,,写顺手了。。 > ---------------------------------- > [email protected] > [email protected] > > 2009/9/23 msmouse <[email protected]> > > > 不是15位十进制数,是32位二进制 只是我没把1234写成 0b00 0b01 0b10 0b11,没把$index*4写成$index<<2而已。。 > > ---------------------------------- > > [email protected] > > [email protected] --~--~---------~--~----~------------~-------~--~----~ 您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。 要在此论坛发帖,请发电子邮件到 [email protected] 要退订此论坛,请发邮件至 [email protected] 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛 -~----------~----~----~----~------~----~------~--~---
