NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Reaped: new to perl and have a list question

Replies are listed 'Best First'.
Re: new to perl and have a list question
by marto (Cardinal) on Mar 21, 2006 at 20:25 UTC
    snyder,

    In what way does this differ from your previous question tar help?
    You have not replied to any of the monks who have answered your previous request for help.
    Are you having any problems following their advice?
    I notice you are new to the Monastery, please read the PerlMonks FAQ and How do I post a question effectively? if you have not already done so.

    Hope this helps.

    Martin
      Ah, this forum is a little different than I am used to. I see the response to the post yesterday by following the link you provided. My apologies for redundant posting. I will pursue the suggestions in yesterdays post.
Re: new to perl and have a list question
by InfiniteSilence (Curate) on Mar 21, 2006 at 21:39 UTC
    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

Re: new to perl and have a list question
by zer (Deacon) on Mar 21, 2006 at 20:28 UTC
    "build" a list?
    do you mean to read a directory?
    You should be a little more specific with what you want to do and maybe show a bit of code to show us where you are

    Take a look at "How to post a question effectively"