Added attachment files again. I was not able to see attachment files earlier.
For quick reference pasting the contents of attached file here-
1. Archive_Tar_OOM.pl-
===============================================================
use Archive::Tar;
my $bundle = "C:\\Archive_Tar_Example\\My_Sample.tar.gz";
my $tar_engine = Archive::Tar->new($bundle, 1);
print "\nCreated Tar object.";
my @filelist = $tar_engine->list_files();
if(!$tar_engine->extract(@filelist))
{
print "\nError in extraction.";
}
else
{
print "\nExtracted Successfully.";
}
print "\nReached at end";
===============================================================
2. Tar_Example_Result.out-
===============================================================
C:\>F:\Perl_ActiveState_5.20.2_32bit\bin\perl.exe -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x86-multi-thread-64int
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2015, Larry Wall
Binary build 2001 [298913] provided by ActiveState
http://www.ActiveState.com
Built Mar 19 2015 15:26:52
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at
http://www.perl.org/, the Perl Home Page.
C:\>F:\Perl_ActiveState_5.20.2_32bit\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl
Out of memory!
C:\>
C:\>F:\Perl_ActiveState_5.20.2_64bit\bin\perl.exe -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x64-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2015, Larry Wall
Binary build 2001 [298913] provided by ActiveState
http://www.ActiveState.com
Built Mar 24 2015 12:09:44
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at
http://www.perl.org/, the Perl Home Page.
C:\>F:\Perl_ActiveState_5.20.2_64bit\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl
Created Tar object.
Extracted Successfully.
Reached at end
C:\>
C:\>F:\Perl_Strawberry_5.20.2.1_32bit\perl\bin\perl.exe -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x86-multi-thread-64int
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at
http://www.perl.org/, the Perl Home Page.
C:\>F:\Perl_Strawberry_5.20.2.1_32bit\perl\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl
Out of memory!
C:\>
C:\>F:\Perl_Straberry_5.20.2.1_64bit\perl\bin\perl.exe -v
This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x64-multi-thread
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at
http://www.perl.org/, the Perl Home Page.
C:\>F:\Perl_Straberry_5.20.2.1_64bit\perl\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl
Created Tar object.
Extracted Successfully.
Reached at end
C:\>
===============================================================