Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    my $dir = shift;
    ...
    my @files=readdir DIR;
    print $#files+1, "\n";
    closedir DIR;
    
  2. or download this
    use strict;
    use warnings;
    my $dir = shift;
    ...
      # actions go here
    }
    closedir DIR;