Help for this page
use File::Spec::Functions qw( catfile ); ... or die("Unable to read utilities directory \"$dir\": $!\n"); my @files = grep { !-d catfile($dir, $_) } readdir($dh);
my @files = grep { !-d } map { catdir($dir, $_) } readdir($dh);