1File::Find::Object::RulUes:e:rPrCoocnetdruirbault(e3d)PFeirlle:D:oFciunmde:n:tOabtjieocnt::Rule::Procedural(3)
2
3
4

NAME

6       File::Find::Object::Rule::Procedural - File::Find::Object::Rule's
7       procedural interface
8

VERSION

10       version 0.0309
11

SYNOPSIS

13         use File::Find::Object::Rule;
14
15         # find all .pm files, procedurally
16         my @files = find(file => name => '*.pm', in => \@INC);
17

DESCRIPTION

19       In addition to the regular object-oriented interface,
20       File::Find::Object::Rule provides two subroutines for you to use.
21
22       "find( @clauses )"
23       "rule( @clauses )"
24           "find" and "rule" can be used to invoke any methods available to
25           the OO version.  "rule" is a synonym for "find"
26
27       Passing more than one value to a clause is done with an anonymous
28       array:
29
30        my $finder = find( name => [ '*.mp3', '*.ogg' ] );
31
32       "find" and "rule" both return a File::Find::Object::Rule instance,
33       unless one of the arguments is "in", in which case it returns a list of
34       things that match the rule.
35
36        my @files = find( name => [ '*.mp3', '*.ogg' ], in => $ENV{HOME} );
37
38       Please note that "in" will be the last clause evaluated, and so this
39       code will search for mp3s regardless of size.
40
41        my @files = find( name => '*.mp3', in => $ENV{HOME}, size => '<2k' );
42                                                           ^
43                                                           |
44                      Clause processing stopped here ------/
45
46       It is also possible to invert a single rule by prefixing it with "!"
47       like so:
48
49        # large files that aren't videos
50        my @files = find( file    =>
51                          '!name' => [ '*.avi', '*.mov' ],
52                          size    => '>20M',
53                          in      => $ENV{HOME} );
54

VERSION

56       version 0.0309
57

AUTHOR

59       Richard Clamp <richardc@unixbeard.net>
60
62       Copyright (C) 2003 Richard Clamp.  All Rights Reserved.
63
64       This module is free software; you can redistribute it and/or modify it
65       under the same terms as Perl itself.
66

SEE ALSO

68       File::Find::Object::Rule
69

AUTHORS

71       ·   Richard Clamp <richardc@unixbeard.net> with input gained from this
72
73       ·   and Andy Lester andy@petdance.com.
74
76       This software is copyright (c) 2018 by Richard Clampwith input gained
77       from this.
78
79       This is free software; you can redistribute it and/or modify it under
80       the same terms as the Perl 5 programming language system itself.
81

BUGS

83       Please report any bugs or feature requests on the bugtracker website
84       <https://github.com/shlomif/file-find-object-rule/issues>
85
86       When submitting a bug or request, please include a test-file or a patch
87       to an existing test-file that illustrates the bug or desired feature.
88

SUPPORT

90   Websites
91       The following websites have more information about this module, and may
92       be of help to you. As always, in addition to those websites please use
93       your favorite search engine to discover more resources.
94
95       ·   MetaCPAN
96
97           A modern, open-source CPAN search engine, useful to view POD in
98           HTML format.
99
100           <https://metacpan.org/release/File-Find-Object-Rule>
101
102       ·   Search CPAN
103
104           The default CPAN search engine, useful to view POD in HTML format.
105
106           <http://search.cpan.org/dist/File-Find-Object-Rule>
107
108       ·   RT: CPAN's Bug Tracker
109
110           The RT ( Request Tracker ) website is the default bug/issue
111           tracking system for CPAN.
112
113           <https://rt.cpan.org/Public/Dist/Display.html?Name=File-Find-Object-Rule>
114
115       ·   AnnoCPAN
116
117           The AnnoCPAN is a website that allows community annotations of Perl
118           module documentation.
119
120           <http://annocpan.org/dist/File-Find-Object-Rule>
121
122       ·   CPAN Ratings
123
124           The CPAN Ratings is a website that allows community ratings and
125           reviews of Perl modules.
126
127           <http://cpanratings.perl.org/d/File-Find-Object-Rule>
128
129       ·   CPANTS
130
131           The CPANTS is a website that analyzes the Kwalitee ( code metrics )
132           of a distribution.
133
134           <http://cpants.cpanauthors.org/dist/File-Find-Object-Rule>
135
136       ·   CPAN Testers
137
138           The CPAN Testers is a network of smoke testers who run automated
139           tests on uploaded CPAN distributions.
140
141           <http://www.cpantesters.org/distro/F/File-Find-Object-Rule>
142
143       ·   CPAN Testers Matrix
144
145           The CPAN Testers Matrix is a website that provides a visual
146           overview of the test results for a distribution on various
147           Perls/platforms.
148
149           <http://matrix.cpantesters.org/?dist=File-Find-Object-Rule>
150
151       ·   CPAN Testers Dependencies
152
153           The CPAN Testers Dependencies is a website that shows a chart of
154           the test results of all dependencies for a distribution.
155
156           <http://deps.cpantesters.org/?module=File::Find::Object::Rule>
157
158   Bugs / Feature Requests
159       Please report any bugs or feature requests by email to
160       "bug-file-find-object-rule at rt.cpan.org", or through the web
161       interface at
162       <https://rt.cpan.org/Public/Bug/Report.html?Queue=File-Find-Object-Rule>.
163       You will be automatically notified of any progress on the request by
164       the system.
165
166   Source Code
167       The code is open to the world, and available for you to hack on. Please
168       feel free to browse it and play with it, or whatever. If you want to
169       contribute patches, please send me a diff or prod me to pull from your
170       repository :)
171
172       <https://github.com/shlomif/file-find-object-rule>
173
174         git clone http://bitbucket.org/shlomif/perl-file-find-object-rule
175
176
177
178perl v5.28.0                      2018-0F7i-l1e4::Find::Object::Rule::Procedural(3)
Impressum