From:                   "Student of Perl" <[EMAIL PROTECTED]>
> i am coding a Perl script that downloads 
> updated copies of files from a ftp site ;
> For the first time it will download all the
> files. And for every next execution of this
> script it will check the local copies of
> the files with corresponding remote files
> on ftp site. If the file size mismatch of
> the copies mismatch then the script 
> downloads the remote file otherwise not.
> 
> <snipped>
> 
> I want to change this critera ; I wanto use
> criteria with the combination of
> 
> file creation data,time + file size.
> 
> The problems involved in this approach is
> that I am using Net::FTP package for
> ftp functions. And whenever I download
> any file from ftp site using get($filename) 
> function ; the file is downloaded but
> the file date and time is set as per current
> system date and time. I want to retain
> time and size of the remote file even after
> they are downloaded.

You may change the date&time with utime() :
        perldoc -f utime

Another option is to store the date&times in a DBM file.

Jenda


=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to