File::RegexMatch?

On Tue, Dec 13, 2011 at 8:21 AM, <ll...@singletasker.co.uk> wrote:

> Hi there,
>
> I'm close to completing a module, but I'm pretty clueless on what to call
> it.
>
> The purpose of the module is to find files which match a regular
> expression. The module currently only has one subroutine which takes two
> parameters, base_directory and expression. The subroutine traverses all
> subdirectories of the base directory and returns a hash when it's completed.
>
> Each key of the returned hash is the absolute path of the directory, and
> the value(s) associated with the key are the files which were found
> matching the regular expression within that directory, the hash only
> returns a directory if there are files which matched the given regex found
> within that directory.
>
> I've had a couple of ideas such as File::Snap (based on a card game I used
> to play as a child), but I'm not sure if it's very suitable. Any guidance
> would be appreciated.
>
> Many thanks,
> Lloyd.
>



-- 
Check out my LEGO blog at http://www.brickpile.com
Follow/friend me: facebook.com/billward • flickr.com/photos/billward •
twitter.com/williamward

Reply via email to