Help for this page

Select Code to Download


  1. or download this
    my $path = "/path-to/some-dir";
    opendir(DIR, $path) || die "Could not read $path - $!\n";
    for my $fileFound (grep /\.sss$/, readdir(DIR)) {
       # do stuff here...
    }
    
  2. or download this
    my $path = "/path-to/some-dir";
    opendir(DIR, $path) || die "Could not read $path - $!\n";
    for my $fileFound (grep /^loy/, readdir(DIR)) {
       # do stuff here...
    }