[PerlChina] 紧急在线求救,调试了很久都过不去关于unpack "NN/(w/aN)"

cnhack TNT cnhacktnt at gmail.com
Sun May 18 18:52:20 PDT 2008


Myperl2008 能不能给个数据做测试?有必要的话请附上说明和期望结果。

2008/5/19 joe jiang <lamp.purl at gmail.com>:

> w:   A BER compressed integer (128 based)
> 你确定要用这样类型的整数来描述数据长度么?
> On 日, 2008-05-18 at 22:10 +0800, perl perl wrote:
> > Hi,
> >    蔡鸟遇到一个问题,请求指点:
> >         my ($count, @unpack) = unpack "NN/(w/aN)",
> > read_file("$directory/sgments");
> > 这个unpack总是报错说 '/' must fillow a numeric type in unpack,为什么会
> > 出错呢?
> > NN是网络字节,w是压缩字节,a是字符串,如果w/aN中间没有"/"就可以通过,
> > 但是unpack的数据就不对了。我的测试是在winxp+acticeperl 5.8下作的,请求
> > 帮助,谢谢.
> > _______________________________________________
> > China-pm mailing list
> > China-pm at pm.org
> > http://mail.pm.org/mailman/listinfo/china-pm
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20080519/ca541015/attachment.html 


More information about the China-pm mailing list