in reply to Pattern Matching
Try:
if($file =~ /0000.*\/) [download]
The '.' matches any character and the '*' quantifies the '.' to match 0 or more times.
- Frank