in reply to File name filtering with ^ ?
my @files = () ; opendir DIR, '/path/to/dir' ; foreach( readdir DIR ){ # do this unless it matches a digit or char followed by T # or V followed by anything. push @files, $_ unless/[\d\w][TV].*/ ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File name filtering with ^ ?
by xicheng (Sexton) on Mar 20, 2007 at 05:50 UTC |