Acme-ful
view release on metacpan or search on metacpan
One line to rule them all.
use ful;
Brings the first C<lib/> directory found by directory ascencion and adds it to
C<@INC>.
Instead of:
use lib::relative '../../lib';
# or
use FindBin;
use lib "$FindBin::Bin/../lib";
# or even
BEGIN {
use Path::Tiny;
my $base = path(__FILE__)->parent;
$base = $base->parent until -d "$base/lib" or $base->is_rootdir;
unshift @INC, "$base/lib";
}
=head1 USAGE
One line to rule them all.
use ful;
Brings the first C<lib/> directory found by directory ascencion and adds it to
C<@INC>.
Instead of:
use lib::relative '../../lib';
# or
use FindBin;
use lib "$FindBin::Bin/../lib";
# or even
BEGIN {
use Path::Tiny;
my $base = path(__FILE__)->parent;
$base = $base->parent until -d "$base/lib" or $base->is_rootdir;
unshift @INC, "$base/lib";
}
=head1 USAGE
( run in 0.273 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )