1File::Find::Object::RulUes:e:rPrCoocnetdruirbault(e3d)PFeirlle:D:oFciunmde:n:tOabtjieocnt::Rule::Procedural(3)
2
3
4
6 version 0.0311
7
9 use File::Find::Object::Rule;
10
11 # find all .pm files, procedurally
12 my @files = find(file => name => '*.pm', in => \@INC);
13
15 In addition to the regular object-oriented interface,
16 File::Find::Object::Rule provides two subroutines for you to use.
17
18 "find( @clauses )"
19 "rule( @clauses )"
20 "find" and "rule" can be used to invoke any methods available to
21 the OO version. "rule" is a synonym for "find"
22
23 Passing more than one value to a clause is done with an anonymous
24 array:
25
26 my $finder = find( name => [ '*.mp3', '*.ogg' ] );
27
28 "find" and "rule" both return a File::Find::Object::Rule instance,
29 unless one of the arguments is "in", in which case it returns a list of
30 things that match the rule.
31
32 my @files = find( name => [ '*.mp3', '*.ogg' ], in => $ENV{HOME} );
33
34 Please note that "in" will be the last clause evaluated, and so this
35 code will search for mp3s regardless of size.
36
37 my @files = find( name => '*.mp3', in => $ENV{HOME}, size => '<2k' );
38 ^
39 |
40 Clause processing stopped here ------/
41
42 It is also possible to invert a single rule by prefixing it with "!"
43 like so:
44
45 # large files that aren't videos
46 my @files = find( file =>
47 '!name' => [ '*.avi', '*.mov' ],
48 size => '>20M',
49 in => $ENV{HOME} );
50
52 File::Find::Object::Rule::Procedural - File::Find::Object::Rule's
53 procedural interface
54
56 Richard Clamp <richardc@unixbeard.net>
57
59 Copyright (C) 2003 Richard Clamp. All Rights Reserved.
60
61 This module is free software; you can redistribute it and/or modify it
62 under the same terms as Perl itself.
63
65 File::Find::Object::Rule
66
68 Websites
69 The following websites have more information about this module, and may
70 be of help to you. As always, in addition to those websites please use
71 your favorite search engine to discover more resources.
72
73 · MetaCPAN
74
75 A modern, open-source CPAN search engine, useful to view POD in
76 HTML format.
77
78 <https://metacpan.org/release/File-Find-Object-Rule>
79
80 · Search CPAN
81
82 The default CPAN search engine, useful to view POD in HTML format.
83
84 <http://search.cpan.org/dist/File-Find-Object-Rule>
85
86 · RT: CPAN's Bug Tracker
87
88 The RT ( Request Tracker ) website is the default bug/issue
89 tracking system for CPAN.
90
91 <https://rt.cpan.org/Public/Dist/Display.html?Name=File-Find-Object-Rule>
92
93 · AnnoCPAN
94
95 The AnnoCPAN is a website that allows community annotations of Perl
96 module documentation.
97
98 <http://annocpan.org/dist/File-Find-Object-Rule>
99
100 · CPAN Ratings
101
102 The CPAN Ratings is a website that allows community ratings and
103 reviews of Perl modules.
104
105 <http://cpanratings.perl.org/d/File-Find-Object-Rule>
106
107 · CPANTS
108
109 The CPANTS is a website that analyzes the Kwalitee ( code metrics )
110 of a distribution.
111
112 <http://cpants.cpanauthors.org/dist/File-Find-Object-Rule>
113
114 · CPAN Testers
115
116 The CPAN Testers is a network of smoke testers who run automated
117 tests on uploaded CPAN distributions.
118
119 <http://www.cpantesters.org/distro/F/File-Find-Object-Rule>
120
121 · CPAN Testers Matrix
122
123 The CPAN Testers Matrix is a website that provides a visual
124 overview of the test results for a distribution on various
125 Perls/platforms.
126
127 <http://matrix.cpantesters.org/?dist=File-Find-Object-Rule>
128
129 · CPAN Testers Dependencies
130
131 The CPAN Testers Dependencies is a website that shows a chart of
132 the test results of all dependencies for a distribution.
133
134 <http://deps.cpantesters.org/?module=File::Find::Object::Rule>
135
136 Bugs / Feature Requests
137 Please report any bugs or feature requests by email to
138 "bug-file-find-object-rule at rt.cpan.org", or through the web
139 interface at
140 <https://rt.cpan.org/Public/Bug/Report.html?Queue=File-Find-Object-Rule>.
141 You will be automatically notified of any progress on the request by
142 the system.
143
144 Source Code
145 The code is open to the world, and available for you to hack on. Please
146 feel free to browse it and play with it, or whatever. If you want to
147 contribute patches, please send me a diff or prod me to pull from your
148 repository :)
149
150 <https://github.com/shlomif/http://bitbucket.org/shlomif/perl-file-find-object-rule>
151
152 git clone git://github.com/shlomif/http://bitbucket.org/shlomif/perl-file-find-object-rule.git
153
155 · Richard Clamp <richardc@unixbeard.net>
156
157 · Andy Lester andy@petdance.com.
158
160 Please report any bugs or feature requests on the bugtracker website
161 <https://github.com/shlomif/http://bitbucket.org/shlomif/perl-file-find-object-rule/issues>
162
163 When submitting a bug or request, please include a test-file or a patch
164 to an existing test-file that illustrates the bug or desired feature.
165
167 This software is copyright (c) 2019 by Richard Clamp.
168
169 This is free software; you can redistribute it and/or modify it under
170 the same terms as the Perl 5 programming language system itself.
171
172
173
174perl v5.30.0 2019-0F8i-l2e6::Find::Object::Rule::Procedural(3)