D
Dotan Halevi
Hi all.
I had tried these two one liners over several perl distributions (perl
version 5.6 and down, OS = Linux , Solaris, Windows) and got the same GOOD
results :
___________ test #1 ___________________
$ perl -e 'print(pack("v", 0x1234))'| hexdump
0000000 1234
0000002
________________ test #2 _______________
$ perl -e 'print(pack("v", 0xabcd))'| hexdump
0000000 abcd
0000002
_____________ end ______________________
but on RedHat Linux 9.0 , whence
$ rpm -q perl
perl-5.8.0-88
Test # 2 produces these strange results :
__________ test #2 over RedHat 9.0, perl 5.8.0-88 __________
$ perl -e 'print(pack("v", 0xabcd))'| hexdump
0000000 8dc3 abc2
0000004
___________ end ________________________
What is wrong here ???
Thanks, Dotan
I had tried these two one liners over several perl distributions (perl
version 5.6 and down, OS = Linux , Solaris, Windows) and got the same GOOD
results :
___________ test #1 ___________________
$ perl -e 'print(pack("v", 0x1234))'| hexdump
0000000 1234
0000002
________________ test #2 _______________
$ perl -e 'print(pack("v", 0xabcd))'| hexdump
0000000 abcd
0000002
_____________ end ______________________
but on RedHat Linux 9.0 , whence
$ rpm -q perl
perl-5.8.0-88
Test # 2 produces these strange results :
__________ test #2 over RedHat 9.0, perl 5.8.0-88 __________
$ perl -e 'print(pack("v", 0xabcd))'| hexdump
0000000 8dc3 abc2
0000004
___________ end ________________________
What is wrong here ???
Thanks, Dotan