Help for this page

Select Code to Download


  1. or download this
    find sub {
       my $numb = (fileparse($_,'.txt'))[0];
       return unless $numb =~ /^\d+$/;
       push @ARGV, $File::Find::name if $numb >= $start and $numb <= $end;
    }, $dir;
    
  2. or download this
    opendir DIR, $dir or die "Failed to open directory $dir: $!";
    foreach my $file (readdir DIR)
    ...
    
        push @ARGV, "$dir/$file";
    }
    
  3. or download this
    {
        local $, = "\n";
        print @ARGC;
    }