in reply to Creating Archives for Files > 4GB

Archive::Any::Create could make things a lot easier for you. It'll create an archive either in tar.gz or zip format. I'd go with the tar.gz. Here's an example:
#!/usr/bin/perl use strict; use warnings; use Archive::Any::Create; my $archive = Archive::Any::Create->new; $archive->container('myStuff');#top-level dir with your files $archive->add_file('stuff.pl', 'perl script'); $archive->add_file('morestuff.pl', 'perl script'); $archive->write_file('myStuff.tar.gz'); #or #$archive->write_file('myStuff.zip');
It can knock off a 6 GB tarball like it was 6 K.

Replies are listed 'Best First'.
Re^2: Creating Archives for Files > 4GB
by desemondo (Hermit) on Jul 23, 2010 at 12:37 UTC
    True, however gzip doesn't support/provide random access to individual files within the gzipped archive. The entire archive must be unzipped first, even if you only want to access 1 file...

    For some tasks/processes that is a BIG difference... for others, it probably doesn't matter much...