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

perl perl myperl2008 at gmail.com
Sun May 18 07:10:34 PDT 2008


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下作的,请求帮助,谢谢.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20080518/ac2054d1/attachment.html 


More information about the China-pm mailing list