Help for this page

Select Code to Download


  1. or download this
    #use bytes;
    
    ...
    print unpack 'B*', $x;
    
    print "\n---\n";
    
  2. or download this
    Character in 'B' format wrapped in unpack at /tmp/j1.pl line 7.
    10101010 --> 01010100
    ...
    Character in 'C' format wrapped in pack at /tmp/j1.pl line 14.
    10101010 --> 01010100
    ---