Help for this page

Select Code to Download


  1. or download this
    read() # when reading from a file, or
    unpack() # using b or B in the template when reading from a string
    
  2. or download this
    $a = $b << 3;
    
  3. or download this
    $a = $b >> 2;
    
  4. or download this
    $c = $a & $b;
    
  5. or download this
    $c = $a | $b;
    
  6. or download this
    $c = $a ^ $b;
    
  7. or download this
    $hex =~ s/([01]{4})/sprintf("%.1x", eval('0b'.$binary))/eg;