【发布时间】:2013-12-19 06:49:26
【问题描述】:
我的 Perl 程序:
say 'Hexadecimal notation in a Perl script';
my$str = pack 'H*', '987456123';
print unpack('H*', $str), "\n";
print unpack('h*', $str), "\n";
输出:
Hexadecimal notation in a Perl script
1. 9874561230 # Why is it showing zero here?
2. 8947652103
在我的1 结果中,为什么它显示为零?这是什么原因?
【问题讨论】: