(mandatory CYA: might also not hurt to use 1 while unlink $_)foreach ( glob("./*se*ab*") ) { unlink $_ if (-f $_ && /se\d{4}ab/); }
In reply to Re: Delete files matching pattern
by Transient
in thread Delete files matching pattern
by bofh_of_oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |