SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from OpenSuSE perl-File-Find-Rule-0.350.0-2.1.noarch.rpm

File::Find::Rule::Procedural

Section: User Contributed Perl Documentation (3)
Updated: 2025-06-11
Index 

NAME

File::Find::Rule::Procedural - File::Find::Rule's procedural interface 

SYNOPSIS

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

DESCRIPTION

In addition to the regular object-oriented interface,File::Find::Rule provides two subroutines for you to use.
find( @clauses )
rule( @clauses )
"find" and "rule" can be used to invoke any methods available to theOO version. "rule" is a synonym for "find"

Passing more than one value to a clause is done with an anonymousarray:

 my $finder = find( name => [ '*.mp3', '*.ogg' ] );

"find" and "rule" both return a File::Find::Rule instance, unlessone of the arguments is "in", in which case it returns a list ofthings that match the rule.

 my @files = find( name => [ '*.mp3', '*.ogg' ], in => $ENV{HOME} );

Please note that "in" will be the last clause evaluated, and so thiscode will search for mp3s regardless of size.

 my @files = find( name => '*.mp3', in => $ENV{HOME}, size => '<2k' );                                                    ^                                                    |               Clause processing stopped here ------/

It is also possible to invert a single rule by prefixing it with "!"like so:

 # large files that aren't videos my @files = find( file    =>                   '!name' => [ '*.avi', '*.mov' ],                   size    => '>20M',                   in      => $ENV{HOME} );
 

AUTHOR

Richard Clamp <richardcAATTunixbeard.net> 

COPYRIGHT

Copyright (C) 2003 Richard Clamp. All Rights Reserved.

This module is free software; you can redistribute it and/or modify itunder the same terms as Perl itself. 

SEE ALSO

File::Find::Rule


 

Index

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
COPYRIGHT
SEE ALSO

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector