NAME

File::RegexMatch - Extension to help find files using regular expressions.

SYNOPSIS

	#!/usr/bin/env perl

	use strict;
	use warnings;
	use File::RegexMatch;

	my $regexmatch = File::RegexMatch->new(
                verbose => 1
	);
	my @ret = $regexmatch->match(
                base_directory => "/home/user/public_html",
                expression     => qr/\.pl$/
	);

	foreach(@ret) { ... }

DESCRIPTION

This module provides a subroutine to return the absolute path of each file found matching a given regular expression.

METHODS

new

Creates a new File::RegexMatch object. An optional argument for verbose can be passed to it. The value should be a boolean.

my $regexmatch = File::RegexMatch->new(
	verbose => 1,
);

match

Returns an array of files that match a given regular expression. It requires two parameters, base_directory and expression. expression must be a Regexp reference.

$regexmatch->match(
	base_directory => "/home/user/public_html",
	expression     => qr/\.pl$/,
);

BUGS

Please report any bugs to frm-bugs[at]singletasker.co.uk

AUTHOR

Lloyd Griffiths lloydg[at]singletasker.co.uk

COPYRIGHT

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