augamecock has asked for the wisdom of the Perl Monks concerning the following question:
All it does is print the number 1. Am I using this wrong or don't have some permissions set right or something?. I'm just trying to add a date the file was last modified. Thanks for any helpmy @files; opendir (FILE,"/var/www/html/file") || die $!; @files = grep {-f "/var/www/html/file/$_"} readdir (FILE); closedir (FILE) || die $!; foreach $files (sort(@files)) { $mtime = stat($files); print $mtime; };
Edited 2002-01-10 by Ovid
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A little help w/ stat() por favor...
by blakem (Monsignor) on Jan 11, 2002 at 06:34 UTC | |
by augamecock (Novice) on Jan 11, 2002 at 06:42 UTC | |
by blakem (Monsignor) on Jan 11, 2002 at 06:48 UTC | |
by augamecock (Novice) on Jan 11, 2002 at 06:54 UTC | |
by blakem (Monsignor) on Jan 11, 2002 at 06:55 UTC | |
by augamecock (Novice) on Jan 11, 2002 at 06:55 UTC | |
by augamecock (Novice) on Jan 11, 2002 at 06:57 UTC | |
|
Re (tilly) 1: A little help w/ stat() por favor...
by tilly (Archbishop) on Jan 11, 2002 at 07:21 UTC | |
|
Re: A little help w/ stat() por favor...
by clintp (Curate) on Jan 11, 2002 at 07:11 UTC | |
|
Re: A little help w/ stat() por favor...
by nikos (Scribe) on Jan 14, 2002 at 03:17 UTC |