Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Do you know where your variables are?
 
PerlMonks  

Re: new to perl and have a list question

by InfiniteSilence (Curate)
on Mar 21, 2006 at 16:39 UTC ( [id://538315]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Reaped: new to perl and have a list question

If I am not mistaken you want to know how to use Archive::Tar in this way:
tar -cvf too-bad-v0.1.tar -T MYFILENAME.txt
Where the contents of MYFILENAME.txt are:
file1.txt file2.txt ...
This feature can actually be very useful if you have a large directory but only want to recreate periodic tar-balls of certain files in it. After re-reading the perldoc I don't see that feature in my installed version. To emulate it, you can just read the contents of your file, turn the lines into an array of file names (remember to chomp), and then use the add_files() method in Archive::Tar if I am not mistaken.

Celebrate Intellectual Diversity

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://538315]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.