Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Issue with Archive::Tar

by Bloodnok (Vicar)
on Mar 21, 2014 at 15:33 UTC ( #1079288=note: print w/replies, xml ) Need Help??


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 :-))

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2022-05-25 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?