bengmau has asked for the wisdom of the Perl Monks concerning the following question:
my $rule = File::Find::Rule->new; $rule->file; $rule->name( '*.tmp' ); #find all xml files $rule->mtime("<$timeback"); my @files = $rule->in( $startdir ); ##give me all xml files dating +past $daysback from $startdir ## subroutine me? ## what to do with it my $file = "output.log"; open (OUT,">$file"); foreach (@files) { print OUT $_."\n"; ## move and tar it here } close (OUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: stream results directly to a file
by mattriff (Chaplain) on Feb 04, 2005 at 16:44 UTC | |
by bengmau (Beadle) on Feb 04, 2005 at 16:49 UTC | |
|
Re: stream results directly to a file
by Tanktalus (Canon) on Feb 04, 2005 at 16:46 UTC |