Help for this page

Select Code to Download


  1. or download this
    #!perl -lw
    $x = "\x55\xAA\x55\xAA";;
    substr( $x, $_, 1 ) = chr( ord( substr( $x, $_, 1 )) << 1 ) for 0 .. 3
    +;;
    ...
    Character in 'b' format wrapped in unpack at - line 7.
    Character in 'b' format wrapped in unpack at - line 7.
    01010101001010100101010100101010
    
  2. or download this
    $ perl
    #!perl -lw
    $x = "\x55\xAA\x55\xAA";;
    ...
    0100001101010101101000110010100101000011010101011010001100101001
    1100001101000001010000110101010111000011101000010100001100101001110000
    +1101000001010000110101010111000011101000010100001100101001
    0100001101010101101000110010100101000011010101011010001100101001