- or download this
opendir DIR, "dirname";
@files = readdir DIR;
...
for $file (@files) {
do whatever you want ...
}
- or download this
for $file (@files) {
next if $file =~ /^.+/;
}
- or download this
for $file (@files) {
next if $file !~ /\.whatever/;
do your stuff here
}
- or download this
-----------------------------------
--the good, the bad and the physi--
-----------------------------------