[PerlChina] 紧急在线求救,调试了很久都过不去关于unpack "NN/(w/aN)"
joe jiang
lamp.purl at gmail.com
Sun May 18 18:44:35 PDT 2008
perldoc perldiag:
’/’ must follow a numeric type in unpack
(F) You had an unpack template that contained a ’/’, but this
did
not follow some unpack specification producing a numeric
value.
See "pack" in perlfunc.
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
More information about the China-pm
mailing list