neniro has asked for the wisdom of the Perl Monks concerning the following question:
neniro#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Date::Calc qw/ Time_to_Date /; use File::Find::Rule; my @files = File::Find::Rule->file() ->name( '*.doc' ) ->mtime( -1 ) ->in( 'D:/Dokumentation/' ); @files = map { { name => $_, #modified => [Time_to_Date((stat($_))[9])], size => (stat($_))[7] } } @files; print Dumper \@files;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using -mtime in File::Find::Rule seems to fail on Windows
by BrowserUk (Patriarch) on Jul 20, 2004 at 13:58 UTC | |
by neniro (Priest) on Jul 20, 2004 at 14:04 UTC | |
by BrowserUk (Patriarch) on Jul 20, 2004 at 14:10 UTC | |
by neniro (Priest) on Jul 20, 2004 at 14:24 UTC |