The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.02

  • optimize for n = 1
  • use insertion algorithm when n is small (<= 6)
  • optimize search algorithm
  • now functions return cutoff element on scalar context
  • negative n is handled as bottom
  • make algorithm stable (there was a bug before).

Modules

select and sort top n elements