in reply to Invalid File Handle???
You should check if the file system supports atime at all before trying to use it. My guess is that on your system, $sb->atime did not return something usable that localtime could use. In fact, I'm wondering a bit that your localtime seems to return objects, but that may or may not be.
In the end, maybe some code $at ||= localtime or some other sensible default for $at should make your script work in the cases where atime does not return a sensible value.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Invalid File Handle???
by blackadder (Hermit) on Jul 13, 2005 at 11:36 UTC | |
by Corion (Patriarch) on Jul 13, 2005 at 12:25 UTC | |
by Fletch (Bishop) on Jul 13, 2005 at 12:39 UTC | |
by thundergnat (Deacon) on Jul 13, 2005 at 15:23 UTC |