The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Search results for "dist:Data-RandomKeep LUCS"

Data::RandomKeep - Randomly keep a given number of offered items. River stage zero No dependents

Suppose you want to keep ten random lines from a file. You might read all the lines in an array, shuffle it, and keep the first ten lines, but that can be quite wasteful, especially if the file is big. This module implements the task in a more effici...

LUCS/Data-RandomKeep-0.02 - 03 Aug 2008 16:33:10 UTC
1 result (0.026 seconds)