Were you thinking of something like the IO::Dir interface for walking the contents of the tar file, or something to handle each of the files within? How would you handle tar archives where there are multiple copies of the same file in the archive?

The difference (which you, but not those asking, may already know) between the other two file types and a tar archive is that the first two are single files, while a tar archive is more like a directory, with the potential of multiple instances of a file within.

Update: Does nextStream from IO::Uncompress::AnyUncompress do what you are thinking of for getting individual files from the archive? Is that the interface you are considering?

--MidLifeXis


In reply to Re: Is there an IO::*-like interface for accessing tar files? by MidLifeXis
in thread Is there an IO::*-like interface for accessing tar files? by atcroft

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.