http://qs321.pair.com?node_id=1079288


in reply to Issue with Archive::Tar

It rather looks to me as tho' you're writing before there's anything there i.e.
$tar->write('Test2.tbz', COMPRESS_BZIP); $tar->add_files(@files);
should be
$tar->add_files(@files); $tar->write('Test2.tbz', COMPRESS_BZIP);
Referring to Archive::Tar, we see that add_files() only adds files to the in-memory object i.e. not to any file that may have been written using write() ... unless, of course, it's nealry beer o'clock on Friday afternoon and I've missed something even more elementary :-)

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^2: Issue with Archive::Tar
by dracos (Sexton) on Mar 21, 2014 at 15:40 UTC

    Knew I was overlooking the obvious.

    Thanks

      Not a problem dracos, we all do it ... and I defy anybody to say they don't :-)

      A user level that continues to overstate my experience :-))