Help for this page

Select Code to Download


  1. or download this
    sub htonl {
      my $input = shift;
      my $output = unpack( 'N*', pack( 'L*', $input ) );
      return $output;
    }
    
  2. or download this
    $packed = pack 'l', 17;;
    
    ...
    0
    0
    0
    
  3. or download this
    $unpacked = unpack 'N', $packed;;
    
    ...
    55
    50
    0