opendir(my $dh, './dir') || die "opendir: $!"; unlink map { "./dir/$_" } grep { /$mypattern/i } readdir $dh; closedir $dh;
In reply to Re^3: Unlink files but not in pwd
by drench
in thread Unlink files but not in pwd
by athanasia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |