Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more
|
use constant DEBUG_FIND_YATT_LIB => $ENV {DEBUG_FIND_YATT_LIB}; my $thisdir = do {
if (-r __FILE__) {
File::Basename::dirname(File::Spec->rel2abs(__FILE__));
} else {
Cwd::cwd();
}
};
print STDERR "# thisdir=$thisdir\n" if DEBUG_FIND_YATT_LIB;
my ( $found ) = $thisdir =~ m{^(.*?/)YATT/}
or return ;
print STDERR "# found=$found\n" if DEBUG_FIND_YATT_LIB;
my @libdir = $found ;
foreach my $d ( qw(extlib local/lib/perl5) ) {
-d ( my $dn = File::Basename::dirname( $found ) . "/$d" )
or next ;
push @libdir , $dn ;
}
print STDERR "# libdir=@libdir\n" if DEBUG_FIND_YATT_LIB;
return @libdir ;
|