in reply to Re: Getting the Access Date of a file without changing it
in thread Getting the Access Date of a file without changing it
So, my question (revised) is "Is there a way to determine file type without changing the access date?" Thanks so much.#!perl my $file=shift; if(!-e $file){die "no file";} if(-d $file){print "directory\n";} if(-T $file){print "text file\n";} if(-B $file){print "binary file\n";} my @stats = stat($file); print "Accessed=$stats[8]\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting the Access Date of a file without changing it
by graff (Chancellor) on Dec 14, 2004 at 06:47 UTC | |
|
Re^3: Getting the Access Date of a file without changing it
by graff (Chancellor) on Dec 14, 2004 at 06:17 UTC |