in reply to Re^3: How do i change the file names while untar?
in thread How do i change the file names while untar?

Zaxo, I tried it and the split path does not work either on unix .

  my $tar = Archive::Tar->new('deploy.tar', 1) or die $!;
 $tar->rename($_, changepath($_)) for $tar->list_files; $tar->extract;
  sub changepath { chomp; my $path = $_;
  my ($volume, $directories, $file) = File::Spec->splitpath($path);
  my $dir = File::Spec->catpath($directories, '');
$_=$dir; }
THe same code works fine on win 32. I am getting files from windows into unix and then trying to do these operations. Do you think it would be better to rename while tarring itself on windows box? Is that possible? Thanks