[ale] Perl + Pack

Danny Cox DCox at icc.net
Thu Feb 8 15:36:07 EST 2007


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...




More information about the Ale mailing list