I am unzipping 2 logfiles from 2 different server. One file is name serverA.zip and the other server2.zip. However there is 1 file inside each which is always named by the date and both are the same (ie the file inside both zip files have the same name).
How can I rename them to avoid a conflict when I extract the 2nd file. I am extracting each file as follows.
Can I use rename()???
Here is my zip code.
#################################
my $zip = Archive::Zip->new();
$zip->read(@_);
for($zip->members()) {
$zip->extractMember($_);
$extracted = 1;
}
return $extracted;
#####################################
How can I rename them to avoid a conflict when I extract the 2nd file. I am extracting each file as follows.
Can I use rename()???
Here is my zip code.
#################################
my $zip = Archive::Zip->new();
$zip->read(@_);
for($zip->members()) {
$zip->extractMember($_);
$extracted = 1;
}
return $extracted;
#####################################