Not able to extract a static tar file to custom destination directory:
########################
#
use strict;
use warnings;
use Archive::Tar;
my $source_path='C:\test\Hotfix.tar';
my $dest_path='C:\test\abc\\';
my $tar=Archive::Tar->new();
$tar->read($source_path);
#$tar->extract();
$tar->extract($source_path, $dest_path );
The above script perfectly works if I uncomment #$tar->extract();. It will extract to the current directory from where I am executing, but my requirement is to extract to $dest_path. Can you please help me where I am doing mistake?