Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use File::stat; opendir(DIR, '/cdw/dept/dss/home_dir/s006258/') || die "Unable to open directory '/cdw/dept/dss/home_dir/s006258/': + $!"; while ($file =~ <DIR>) { ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($file); print"$file , $mtime\n"; } closedir DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: accessing file attibutes
by ikegami (Patriarch) on Nov 15, 2006 at 20:07 UTC | |
by Anonymous Monk on Nov 15, 2006 at 20:44 UTC | |
by Joost (Canon) on Nov 15, 2006 at 20:47 UTC | |
by Anonymous Monk on Nov 15, 2006 at 20:54 UTC | |
by Joost (Canon) on Nov 15, 2006 at 21:06 UTC | |
| |
by Anonymous Monk on Nov 15, 2006 at 21:14 UTC | |
by ikegami (Patriarch) on Nov 15, 2006 at 22:45 UTC | |
|
Re: accessing file attibutes
by Joost (Canon) on Nov 15, 2006 at 20:11 UTC |