Port details on branch 2022Q3 |
- p5-File-Random Perl module for random selecting of a file
- 0.21 devel =1 0.21Version of this port present on the latest quarterly branch.
- Maintainer: bofh@FreeBSD.org
- Port Added: 2005-07-22 11:05:22
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- People watching this port, also watch:: p5-Array-Iterator, p5-Sort-Naturally, p5-Decision-ACL, p5-Math-Combinatorics
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/File-Random
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-File-Random>0:devel/p5-File-Random
- To install the port:
- cd /usr/ports/devel/p5-File-Random/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-File-Random
- pkg install p5-File-Random
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-File-Random
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1620417844
SHA256 (File-Random-0.21.tar.gz) = 69ca9391e0a371b470e1728d1a34418ed208da4a17717fc9cbaae0daf4c65424
SIZE (File-Random-0.21.tar.gz) = 13997
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Set-Scalar>0 : devel/p5-Set-Scalar
- p5-Want>=0 : devel/p5-Want
- perl5>=5.32.r0<5.33 : lang/perl5.32
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Set-Scalar>0 : devel/p5-Set-Scalar
- p5-Want>=0 : devel/p5-Want
- perl5>=5.32.r0<5.33 : lang/perl5.32
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_p5-File-Random
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|