Bio-HTS
view release on metacpan or search on metacpan
my @search_path;
#check LD_LIBRARY_PATH first to allow user to override /usr/local
if ( defined $ENV{LD_LIBRARY_PATH} ) {
push @search_path, split /:/, $ENV{LD_LIBRARY_PATH};
}
else {
say "LD_LIBRARY_PATH is not set";
}
#could be in any of these places i guess
push @search_path, qw( /usr/local /usr /usr/share );
for my $folder ( @search_path ) {
my ( $include_dir, $lib_dir );
if ( -e "$folder/$header_file" ) {
$include_dir = $folder;
}
elsif ( -e "$folder/include/$header_file" ) {
( run in 1.312 second using v1.01-cache-2.11-cpan-748bfb374f4 )