Help for this page

Select Code to Download


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