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