作者micchiu (PP )
看板Perl
标题[问题] 关於pack unpack 64 bit integer的问题
时间Wed Apr 2 17:40:55 2008
请问若是我想 pack一个64 bit的integer,
除了拆成两个32bit的来存以外,
是否有办法可以在32bit的机器上强制直接用 "Q"这个type?
eg.
my $format = "Q";
my $pack_a = pack("$format", "1234567890123");
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.248.4.112