in reply to Re: Age of directory
in thread Age of directory

Thanks for the reply. The age of the directory is displayed only for "." and "..". For the rest of the files it and subdirectories it displays as 0. How can I print the age of all files and subdirectories within a directory

Replies are listed 'Best First'.
Re^3: Age of directory
by ig (Vicar) on Mar 20, 2009 at 00:01 UTC

    The script in my previous post prints non-zero times for all files and directories in the current directory when I run it on my system.

    If you are running the same script and getting times of zero for everything other than "." and "..", then something quite strange is happening. I suggest you post the script you are running (the whole script, not part of it and remember to use code tags so we can read it), a sample of the output you get on your system and details of your system including operating system, version, perl distribution and version.