NAME

File::Find::Upwards - Look for a file in the current directory and upwards

SYNOPSIS

use File::Find::Upwards ':all';

my $filename = file_find_upwards('myconfig.yaml');
if ($filename) { ... }

DESCRIPTION

Provides a function that can find a file in the current or a parent directory.

file_find_upwards()

Takes a filename and looks for the file in the current directory. If there is no such file, it traverses up the directory hierarchy until it finds the file or until it reaches the topmost directory. If the file is found, the full path to the file is returned. If the file is not found, undef is returned.

The result is memoized, so repeated calls to the function with the same filename will return the result of the first call for that filename.

This function is exported automatically.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org.

INSTALLATION

See perlmodinstall for information and options on installing Perl modules.

AVAILABILITY

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.

AUTHORS

Marcel Grünauer, <marcel@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2008 by the author.

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