2009/1/23 Li, Aiguo (NIH/NCI) [E] <l...@mail.nih.gov>: > Hi all, > > > > I need copy files from a directory daily to a folder. How can I select > files based on dates that were created? >
for copying a file, use File::Copy: http://search.cpan.org/~nwclark/perl-5.8.9/lib/File/Copy.pm to get file's last modification time, use perl's built-in stat() function.see: perldoc -f stat Ralf. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/