[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Perl + Pack



Chris,

On Thu, 2007-02-08 at 14:49 -0500, Christopher Fowler wrote:

> Can someone tell my what I'm doing wrong?
> 
> perl -e 'print pack "C", 0xFF' | od -x
> 0000000 bfc3
> 0000002
> 
> I'm expecting FF


    Try "od -c" instead.  -x does 16 bit ints.  Using od -c, I get
"00000000 \377".

-- 
Daniel S. Cox
Internet Commerce Corporation
-------------- next part --------------
An HTML attachment was scrubbed...