p5-File-Random
0.21Perl module for random selecting of a file
This module simplifies the routine job of selecting a random file. (As you can find at CGI scripts). It's done, because it's boring (and error prone), always to write something like my @files = (<*.*>); my $randf = $files[rand @files]; or opendir DIR, " ... " or die " ... "; my @files = grep {-f ...} (readdir DIR); closedir DIR; my $randf = $files[rand @files]; It also becomes very boring and very dangerous to write randomly selection for subdirectory searching with special check-routines. The simple standard job of selecting a random line from a file is implemented, too.
Origin: devel/p5-File-Random
Category: devel
Size: 22.6KiB
License: ART10, GPLv1+
Maintainer: bofh@FreeBSD.org
Dependencies: 3 packages
Required by: 0 packages
Website: metacpan.org/release/File-Random
$
pkg install p5-File-RandomDependencies (3)
More in devel
ruby33-gems3.7.2
Package management framework for the Ruby languagegettext-runtime0.26
GNU gettext runtime libraries and programsglib2.84.4,2
Some useful routines of C programming (current stable version)desktop-file-utils0.28
Couple of command line utilities for working with desktop entriesqt6-base6.10.1_1
Qt base (core, gui, widgets, network,...)qt5-core5.15.18p109
Qt core non-graphical module (KDE patched)rubygem-aws-sigv41.12.1
Amazon Web Services Signature Version 4 signing libraryphp84-pear1.10.17
PEAR framework for PHPrubygem-aws-sdk-core3.240.0
AWS SDK for Ruby - Corephp82-pear1.10.17
PEAR framework for PHP