1Path::Tiny::Rule(3)   User Contributed Perl Documentation  Path::Tiny::Rule(3)
2
3
4

NAME

6       Path::Tiny::Rule - Path::Iterator::Rule subclass that returns
7       Path::Tiny objects
8

VERSION

10       version 0.02
11

SYNOPSIS

13         use Path::Tiny::Rule;
14
15         my $iter = Path::Tiny::Rule->new->name(qr/\.t$/)->iter('t');
16
17         while ( my $test_file = $iter->() ) {
18             print $test_file->basename, "\n";
19         }
20

DESCRIPTION

22       This module is a very thin wrapper around Path::Iterator::Rule that
23       always returns Path::Tiny objects instead of strings. It should
24       otherwise be a drop-in replacement for Path::Iterator::Rule, and any
25       deviation from that is a bug.
26
27       This module has no public API that is not provided by
28       Path::Iterator::Rule.
29
30       It exists because I got really tired of writing this:
31
32         while ( my $path = $iter->() ) {
33             $path = path($path);
34             ...;
35         }
36

SUPPORT

38       Bugs may be submitted at
39       <https://github.com/houseabsolute/Path-Tiny-Rule/issues>.
40
41       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
42

SOURCE

44       The source code repository for Path-Tiny-Rule can be found at
45       <https://github.com/houseabsolute/Path-Tiny-Rule>.
46

DONATIONS

48       If you'd like to thank me for the work I've done on this module, please
49       consider making a "donation" to me via PayPal. I spend a lot of free
50       time creating free software, and would appreciate any support you'd
51       care to offer.
52
53       Please note that I am not suggesting that you must do this in order for
54       me to continue working on this particular software. I will continue to
55       do so, inasmuch as I have in the past, for as long as it interests me.
56
57       Similarly, a donation made in this way will probably not make me work
58       on this software much more, unless I get so many donations that I can
59       consider working on free software full time (let's all have a chuckle
60       at that together).
61
62       To donate, log into PayPal and send money to autarch@urth.org, or use
63       the button at <http://www.urth.org/~autarch/fs-donation.html>.
64

AUTHOR

66       Dave Rolsky <autarch@urth.org>
67
69       This software is Copyright (c) 2017 - 2019 by Dave Rolsky.
70
71       This is free software, licensed under:
72
73         The Artistic License 2.0 (GPL Compatible)
74
75       The full text of the license can be found in the LICENSE file included
76       with this distribution.
77
78
79
80perl v5.36.0                      2023-01-20               Path::Tiny::Rule(3)
Impressum