Hi everybody, I have a little bit of problem with my perl script: script to do - connect over ftp from UNIX to Novell drive get a snapshot of a particular directory on Novell and get only files modified in a particular period of time (from the last time script was run to the current time), I am having no problem listing files on Novell side in UNIX style (permissons, group, owner, size and modification time), but there is a culprit, files that are a bit then a year old are interpreted by UNIX as files that were created this year, confused? Here's an example, you know that older files get modification time in format Month Date Year and files that are a year old or younger
get modification time Month Date Time, so since Net::Ftp is unaware of that files that were created exactly a year ago are 1 year old, when UNIX interprets them they show up as of current year, hence I got some files that are listed as Feb 08 23:44 2002 show up as files created as of Feb 08 23:44 2003, it is none of the problem b/c I use UnixDate from Date::Manip to count seconds of a file life, so if it is more than current time it gets disregarded, but there are some files that were created in the same month as today but a year ago and they show up as current, next month (February) they will revert to the old format Jan 11 2002, but today they show up as Jan 11 22:09, on Novell side they show up as Jan 11 22:09 2002, but when these files are looked up buy Net::Ftp->dir() they get modification time Jan 11 22:09. So here is the problem I am bashing my head against, how the hell do I distinguish these files as last years not as recent ones?
Thank you in advance, hope the problem is clear.