Hello,
is better to use Perl functions when they are! in this case
stat is your tool.
Modification time is the 9th element of the array returened by that function. Pay some attention to returned time value because they are expressed in seconds from
epoch.
Additionally you must be aware of some modification needed, for example, to years (add 1900). see the docs for the
localtime function.
Be aware of
do not using the module(update 16 Sep) to understand the differences between the builtin function and the module: infact the module override the
stat function and export a object oriented interface: see
Problem with file::stat and
Re: File date.
HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.