hipnoodle has asked for the wisdom of the Perl Monks concerning the following question:
opendir(DIR, $dirname) or die "can't opendir $dirname: $!"; while (defined($file = readdir(DIR))) { $mtime= (stat($file))[9]; print "$file : $mtime<br>"; } closedir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: stat only gives info on . & ..
by ikegami (Patriarch) on Jan 18, 2007 at 18:45 UTC | |
by hipnoodle (Novice) on Jan 18, 2007 at 19:13 UTC | |
by ikegami (Patriarch) on Jan 18, 2007 at 19:28 UTC | |
by andyford (Curate) on Jan 18, 2007 at 19:22 UTC | |
by ikegami (Patriarch) on Jan 18, 2007 at 19:34 UTC |