Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Creating a tarball

by tybalt89 (Monsignor)
on Feb 07, 2019 at 06:57 UTC ( [id://1229519]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Path::Tiny;
    path('fred')->visit(
      sub { -f || -d and $tar->add_files($_) },
      {recurse => 1}
      );
    
  2. or download this
    use Archive::Tar;
    my $tar = Archive::Tar::->new();
    ...
      );
    $tar->add_files(@filenamelist);
    $tar->write("fred.tar.gz", COMPRESS_GZIP);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229519]
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: (4)
As of 2024-03-29 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found