scott_shea has asked for the wisdom of the Perl Monks concerning the following question:
sub DirCheck{ my $_dir = $_[0]; print "Directory: $_dir\n"; opendir (DIR, "$_dir") or die "Directory $_dir failed to open: $!" +; my @_dirStat = stat DIR; closedir (DIR); print "Meow\n"; print "DirStat: " . @_dirStat . "\n"; foreach $i (@_dirStat){ print "Item: $i\n"; } #my $_time = ctime($_dirStat[9]); #print "Last Modified Time for $_dir: $_time\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stat not returning values for a directory on Windows XP
by ikegami (Patriarch) on Jan 18, 2010 at 19:36 UTC | |
by scott_shea (Initiate) on Jan 18, 2010 at 19:44 UTC | |
by ikegami (Patriarch) on Jan 18, 2010 at 20:02 UTC | |
by scott_shea (Initiate) on Jan 18, 2010 at 20:15 UTC | |
by scott_shea (Initiate) on Jan 18, 2010 at 20:34 UTC |