The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MOSES::MOBY::Utils - what does not fit elsewhere

SYNOPSIS

 # find a file located somewhere in @INC
 use MOSES::MOBY::Generators::Utils;
 my $file = MOSES::MOBY::Generators::Utils->find_file ('resource.file');

DESCRIPTION

General purpose utilities.

AUTHORS

 Martin Senger (martin.senger [at] gmail [dot] com)
 Edward Kawas (edward.kawas [at] gmail [dot] com)

SUBROUTINES

find_file

Try to locate a file whose name is created from the $default_start and all elements of @names. If it does not exist, try to replace the $default_start by elements of @INC (one by one). If neither of them points to an existing file, go back and return the $default_start and all elements of @names (even - as we know now - such file does not exist).

There are two or more arguments: $default_start and @names.