Questions tagged [archive-tar]
19 questions
0
votes
2 answers
Archive::Tar : can't read tar created just before in Perl
I'm trying to read the content of a file (a.txt) that I just created. This file contains a string consisting of "ABCDE", which I then tar with the write() function. I can see that the "a.tar" is created in my directory, but when I come up to the…

Jonathan Taws
- 1,168
- 11
- 24
0
votes
1 answer
Location for installing Archive-Tar
I tried giving the path for a bioinformatics application DistMap using perl. This is what I got.
[cloudera@localhost ~]$ perl DistMap_v1.0/distmap --mapper-path /home/cloudera/bwa-0.7.5a /bwa
Can't locate Archive/Tar.pm in @INC (@INC contains:…

Ashwin
- 577
- 3
- 6
- 15
0
votes
2 answers
Why does the tarball directory structure disappear when I use Perl's Archive::Tar?
I'm using a Perl script to modify some files inside a .tar, and the directory structure inside the resulting .tar disappears.
Eliminating more and more code I've come as far as all that's required to reproduce this is
my $data_tar =…

Ledhund
- 1,228
- 10
- 24
0
votes
2 answers
Using Perl, push into an array a list of files in a directory except for a few select files based on file name
I'm uploading a tarball through a webpage, dropping it in to /tmp/ then asking this script (which will be invoked via crontab) to:
1.) extract it
2.) build a list of all of the files (only files and recursively) in the directory
3.) search each file…

harperville
- 6,921
- 8
- 28
- 36