in reply to Reg Expression on file name
use strict; use File::Find; my(@directories_to_seach); @directories_to_seach = "C:/Documents and Settings/Desktop"; find(\&wanted, @directories_to_seach); sub wanted { if ("$_" =~ /^AB\sDAT*\.doc$/i) { print "$_\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reg Expression on file name
by Anonymous Monk on Jan 06, 2003 at 19:27 UTC |