graff:
Thanks a lot. I think I have figure out what is going on here. As you said, the "path" info is there, it is just not being identified as such through WinZip and WinRAR programs. What is still a mystery is that the old Archive::Tar generated TAR.GZ files through my Perl script are still being able to be identified through WinZip and WinRAR, but not the new ones.
Also, as I said, when I purposefully try to set the longlink flag, even the current WinZip and WinRAR programs identify the path info, but why I can't have that as a solution is because when I forcefully turn this longlink info, it chops of 1 character in the filename. Duh!
But, I think the Archive::Tar itself is NOT buggy. That's because, subsequent to what you stated, I wrote another Archive::Tar perl script to read the contents of the archive and explode it. Here it did the right thing. It deflated it to "qa" and "test" directories as I expected it. However, WinZip and WinRAR do
NOT do that:
Here is the code and thanks for your help.
use strict;
use Archive::Tar;
my $tar = Archive::Tar->new;
my @numFiles = $tar->read('test.tar.gz') ;
$_->extract for(@numFiles);
$tar->clear;
undef $tar;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.