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

Re: Issue with Archive::Tar

by Bloodnok (Vicar)
on Mar 21, 2014 at 15:33 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-18 00:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found