in reply to List Contents of Windows Directory Folder
Hi mua,
Taking a leap from previous comments on this thread, maybe you want something like this:
When more files are added to this folder, I need to append to the current text fileuse warnings; use strict; use File::Find; use File::stat; find( \&wanted, '.' ); sub wanted { return if $_ eq '.' or $_ eq '..'; my $st = stat($_); print sprintf "Filename: %s, Size: %s, Date Modified: %s\n", $_, $ +st->size, scalar localtime $st->mtime; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: List Contents of Windows Directory Folder
by ColonelPanic (Friar) on Dec 04, 2012 at 10:22 UTC | |
|
Re^2: List Contents of Windows Directory Folder
by mua (Initiate) on Dec 05, 2012 at 00:49 UTC |