Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    
    
    find({ wanted => \&find_ksh, no_chdir=>1}, $location);
    
  2. or download this
    opendir(my $dh, $some_dir) || die "Can't opendir $some_dir: $!";
    my @files= map{s/\.[^.]+$//;$_}grep {/\.ksh$/} readdir DIR;
    closedir $dh;
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    chomp @files;
    print Dumper \@files;
    
  4. or download this
    my @files = `find $path \( -name '*.ksh' -o -name '*.txt' \)`;