- or download this
use File::Find;
my $limit= 4; # Whatever you prefer
for ($name = 1; $name <= $limit; ++$name) {
find(\&Wanted, $dir);
}
- or download this
sub Wanted {
# /$name\.*/;
# NO! You want $name at the beginning!
- or download this
if (/^$name\./) {
# if undef {
- or download this
# $name++;
# return;
...
# some processing missing here?
}
}