Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
opendir(DIR, ".");
foreach (readdir(DIR)) {
next unless -f;
print "do something with $_\n";
}
closedir(DIR);
opendir(DIR, ".");
@files = grep {-f} readdir(DIR);
closedir(DIR);
foreach (@files) {
print "do something with $_\n";
}
use File::Find;
sub wanted {
if (-f) {
print "do something with $File::Find::name\n";
}
}
find(\&wanted, ".");