perl-File-Random - Perl module for random selecting of a file

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-File-Random
Package version 0.18
Package release alt1
Package architecture noarch
Package type rpm
Installed size 17.42 KB
Download size 17.42 KB
Official Mirror
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 errorprone), always to write something like
my @files = (<*.*>);
my $randf = $files[rand @files];
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.


Package Version Architecture Repository
perl-File-Random - - -


Name Value
/usr/share/perl5 -
perl(File/ -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(File/ = 0.180
perl-File-Random = 0.18-alt1


Type URL
Binary Package perl-File-Random-0.18-alt1.noarch.rpm
Source Package perl-File-Random-0.18-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-File-Random rpm package:
    # sudo apt-get install perl-File-Random



See Also

Package Description
perl-File-Random-Pick-0.02-alt1.noarch.rpm Pick random lines from a file
perl-File-RandomGenerator-0.06-alt1.noarch.rpm Utility to generate a random dir tree with random files
perl-File-RandomGenerator-scripts-0.06-alt1.noarch.rpm File-RandomGenerator scripts
perl-File-RandomLine-0.20-alt1.noarch.rpm Retrieve random lines from a file
perl-File-RdistByRsync-0.3-alt1.noarch.rpm perl module File-RdistByRsync
perl-File-RdistByRsync-scripts-0.3-alt1.noarch.rpm File-RdistByRsync scripts
perl-File-Read-0.0801-alt1_25.noarch.rpm Unique interface for reading one or more files
perl-File-RegexMatch- Module to help locate files using regular expressions
perl-File-Remote-1.17-alt1.noarch.rpm perl module File-Remote
perl-File-Rename-1.10-alt1.noarch.rpm Perl extension for renaming multiple files
perl-File-Replace-0.08-alt1.noarch.rpm Perl extension for replacing files by renaming a temp file over the original
perl-File-Revision-0.03-alt1.noarch.rpm perl module File-Revision
perl-File-Rotate-Backup-0.13-alt1.noarch.rpm Performs system backups and rotates them
perl-File-Rotate-Simple-0.2.4-alt1.noarch.rpm no-frills file rotation
perl-File-RotateLogs-0.08-alt1.noarch.rpm File logger supports log rotation