kiwi_bris_ct has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use File::Copy; use POSIX; my @files = ('system.csv', 'sales.csv'); my $home = 'c:/EOD/20 January 2002/'; my $archive = 'y:/New EOD/'; my $yesterday = strftime("%d%m%y", localtime(time - 24*60*60)); for (@files){ copy $home.$_, "$archive${yesterday}_$_" or print "ERROR: Can't copy $_ : $!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: log file
by atopolc (Pilgrim) on Apr 26, 2002 at 12:52 UTC | |
|
Re: log file
by perlplexer (Hermit) on Apr 26, 2002 at 13:40 UTC | |
|