Karger78 has asked for the wisdom of the Perl Monks concerning the following question:
foreach my $upload (@uploads) { my $newName = $upload; $newName =~ s/\.zip$/-${mday}-${mon}-${year}.zip/; copy ($logSite . ${upload}, $localCpPath . $newName)or die "F +ailed to copy"; print "File $upload has been copied over and renamed $newName +\n"; $count++ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add timestamp to file being copied.
by markkawika (Monk) on Jun 08, 2009 at 23:30 UTC | |
by Karger78 (Beadle) on Jun 09, 2009 at 14:34 UTC | |
|
Re: Add timestamp to file being copied.
by ww (Archbishop) on Jun 08, 2009 at 23:54 UTC | |
by almut (Canon) on Jun 09, 2009 at 03:08 UTC | |
by Karger78 (Beadle) on Jun 09, 2009 at 13:19 UTC | |
by Karger78 (Beadle) on Jun 09, 2009 at 18:53 UTC | |
|
Re: Add timestamp to file being copied.
by bichonfrise74 (Vicar) on Jun 08, 2009 at 22:29 UTC |