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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.21 | 0.21 | 0.21 | 0.21 | 0.21 |
| FreeBSD:14:quarterly | 0.21 | 0.21 | n/a | 0.21 | 0.21 |
| FreeBSD:15:latest | 0.21 | 0.21 | n/a | 0.21 | 0.21 |
| FreeBSD:15:quarterly | 0.21 | 0.21 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.21 | 0.21 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
p5-Set-Scalar>0: devel/p5-Set-Scalarp5-Want>=0: devel/p5-Want
Runtime 2
p5-Set-Scalar>0: devel/p5-Set-Scalarp5-Want>=0: devel/p5-Want
Test 5
p5-Test-Class>=0.03: devel/p5-Test-Classp5-Test-Differences>=0.43: devel/p5-Test-Differencesp5-Test-Exception>0.1: devel/p5-Test-Exceptionp5-Test-ManyParams>0: devel/p5-Test-ManyParamsp5-Test-Warn>0.05: devel/p5-Test-Warn
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
| File | Size | SHA256 |
|---|---|---|
| File-Random-0.21.tar.gz | 13997 | 69ca9391e0a371b470e1728d1a34418ed208da4a17717fc9cbaae0daf4c65424 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.