FreeBSD Ports

devel/p5-File-Random 0.21

Perl module for random selecting of a file

Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
12.8 KiB, 22.6 KiB installed

Description

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.

Install

As a binary package — by origin, or by package name:

pkg install devel/p5-File-Random
pkg install p5-File-Random

From the ports tree:

cd /usr/ports/devel/p5-File-Random/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-File-Random>0:devel/p5-File-Random

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.210.210.210.210.21
FreeBSD:14:quarterly0.210.21n/a0.210.21
FreeBSD:15:latest0.210.21n/a0.210.21
FreeBSD:15:quarterly0.210.21n/an/an/a
FreeBSD:16:latest0.210.21n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

Test 5

The full lists below include those, and their dependencies in turn.

All build dependencies 3
All run dependencies 3

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%PERL5_MAN3%%/File::Random.3.gz
  • %%SITE_PERL%%/File/Random.pm
distinfo 1
FileSizeSHA256
File-Random-0.21.tar.gz1399769ca9391e0a371b470e1728d1a34418ed208da4a17717fc9cbaae0daf4c65424
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.