homer has asked for the wisdom of the Perl Monks concerning the following question:
Thanks si_lence, Your suggestion worked, and now I can move on. Appreciate the immediate response.opendir(TARGET, ".") or die "Can't open current directory: $!"; my @targets= grep $pattern readdir TARGET; my $gzip_count = 0; foreach my $target (@targets) { my $cnt = 0; if (-M $target > $expiration) { $gzip_count++; $cnt = `gzip $target`; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opendir and regex
by Zaxo (Archbishop) on Nov 16, 2004 at 18:37 UTC | |
|
Re: Opendir and regex
by si_lence (Deacon) on Nov 16, 2004 at 17:57 UTC | |
|
Re: Opendir and regex
by steves (Curate) on Nov 16, 2004 at 18:17 UTC | |
|
Re: Opendir and regex
by gman (Friar) on Nov 16, 2004 at 17:57 UTC |