http://www.perlmonks.org?node_id=433279


in reply to Re: Stumped by a pack/unpack problem
in thread Stumped by a pack/unpack problem

Hmm. That's an interesting result. Can you give me the output of

print join(" ", map { sprintf "%#02x", $_ } unpack("C*",pack("L",0x12345678))), "\n";

on your system? XS won't be possible, by the way, as this is intentionally a pure-perl implementation.

Replies are listed 'Best First'.
Re^3: Stumped by a pack/unpack problem
by esskar (Deacon) on Feb 22, 2005 at 09:40 UTC
    sure 0x78 0x56 0x34 0x12