my $pattern = qr{se\d{4}ab}i; opendir(DIRHANDLE, ".") or die "Cannot opendir: $!"; unlink grep { -e and /$pattern/ } readdir DIRHANDLE;
In reply to Re^2: Delete files matching pattern
by deibyz
in thread Delete files matching pattern
by bofh_of_oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |