Re: Using unpack for bits
- From: 2teezperl@xxxxxxxxx (timothy adigun)
- Date: Sun, 14 Aug 2011 12:00:48 +0100
Hi th0ma5_anders0n,
if you must use unpack try these:
perl -e "printf('%04g',unpack("B8",pack('c',6)))" # Ans: 0110on Win32:
perl -e 'printf("%04g\n",unpack("B8",pack("c",6)))' # Ans: 0110on Ubuntu
regards.
Timothy
- References:
- Using unpack for bits
- From: th0ma5_anders0n
- Re: Using unpack for bits
- From: "John W. Krahn"
- Using unpack for bits
- Prev by Date: Re: Using unpack for bits
- Next by Date: Re: How to grab last element of array from split with no temporary variables?
- Previous by thread: Re: Using unpack for bits
- Index(es):