Hello,
Do you know how can I easily extract the date of a file passed in as a parameter? My file looks like:
-rw-r--r-- 1 cecilia grad 477 Oct 13 19:56 message
And I need to get the "Oct 13 19:56" I tried using the "stat" function on this file which returns a 13 element array (one of them being the File last modify time, etc) as follows:
open(IN, "message"
or die "Couldn't open file";
@statistics = stat(IN);
But I need to get the Date actually... Do you know how can I do that?
Thanks!
--Cecilia.
Do you know how can I easily extract the date of a file passed in as a parameter? My file looks like:
-rw-r--r-- 1 cecilia grad 477 Oct 13 19:56 message
And I need to get the "Oct 13 19:56" I tried using the "stat" function on this file which returns a 13 element array (one of them being the File last modify time, etc) as follows:
open(IN, "message"
@statistics = stat(IN);
But I need to get the Date actually... Do you know how can I do that?
Thanks!
--Cecilia.