in reply to how do I shorten code
Use grep to select the files you want using whatever tests you like linked with and. Get the list using glob
my $dir = 'c:'; my @list = grep { m!^\Q$dir\E/B.+txt$!i and -M $_ < 1 } glob( "$dir/*" + ); print "$_\n" for @list;
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: how do I shorten code
by Util (Priest) on May 09, 2003 at 02:59 UTC | |
by BrowserUk (Patriarch) on May 09, 2003 at 04:39 UTC |