Run::Parts::Perl(3pm) | User Contributed Perl Documentation | Run::Parts::Perl(3pm) |
Run::Parts::Perl - Pure Perl implementation of Debian's run-parts tool
version 0.09
Pure Perl reimplementation of basic functionality of Debian's run-parts(8) tool.
run-parts(8) runs all the executable files named within constraints described below, found in the given directory. Other files and directories are silently ignored.
Additionally it can just print the names of the all matching files (not limited to executables, but ignores blacklisted files like e.g. backup files), but don't actually run them.
This is useful when functionality or configuration is split over multiple files in one directory.
This module is not thought to be used directly and its interface may change. See Run::Parts for a stable user interface.
On unix-ish operating systems, the file name (but not the path) must match ^[-A-Za-z0-9_]+$, i.e. may not contain a dot.
On dos-ish operating systems, the file name without suffix must match ^[-A-Za-z0-9_]+$, i.e. may not contain a dot. The suffix may contain alphanumeric characters and is not mandatory. The full regular expression the file name including the suffix must match is ^[-A-Za-z0-9_]+(\.[A-Za-z0-9]+)?$.
Debian's run-parts(8) tool also offers to use alternative regular expressions as file name constraints. This is not yet implemented in Run::Parts::Perl.
Creates a new Run::Parts object. Takes one parameter, the directory on which run-parts should work.
Executes the given action with the given parameters
Lists all relevant files in the given directory. Equivalent to "run-parts --list". Returns an array.
Lists all relevant executables in the given directory. Equivalent to "run-parts --tests". Returns an array.
Executes all relevant executables in the given directory. Equivalent to "run-parts --tests". Returns an array.
Returns true if ran on a dos-ish platform, i.e. MS-DOS, Windows or OS/2.
Run::Parts, run-parts(8)
Please report any bugs or feature requests to "bug-run-parts at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Run-Parts>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Axel Beckert <abe@deuxchevaux.org>
This software is copyright (c) 2015 by Axel Beckert.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2015-08-19 | perl v5.20.2 |