Help for this page

Select Code to Download


  1. or download this
    sub _unsigned_to_signed {
       return unpack('i', pack('I', $_[0]));
    ...
          }      
       }
    }
    
  2. or download this
    sub my_binsearch($\@) {
       unshift(@_, sub { $a <=> $b });
    ...
       undef $idx if $idx < 0;
       return $idx;
    }
    
  3. or download this
    my @unsorted = qw( ... strings ... );
    
    ...
    }
    
    print(join("\n", @sorted), "\n");