if ($file =~ /^0{12}(\d{5})A001$/) { next unless ($1 > 1 and $1 < 10174); # unlink $file goes here } [download]
In reply to Re: Pattern Matching by chromatic in thread Pattern Matching by JSchmitz