in reply to system "gzip $full_name" is taking more time
There are several things you can do to improve your script.
The first thing I'd do would be to use the File::Find module. It handles the recursion to traverse a directory tree.
I'd also use another one of the cpan modules, such as IO::Compress::Gzip to replace your system call to gzip.Rather than compressing each individual file by itself, I'd probably group them into one or more tar.gz archives. Maybe one archive per directory.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: system "gzip $full_name" is taking more time
by dushyant (Acolyte) on Dec 07, 2013 at 15:41 UTC | |
by Happy-the-monk (Canon) on Dec 07, 2013 at 17:57 UTC | |
by fishmonger (Chaplain) on Dec 07, 2013 at 16:09 UTC |
In Section
Seekers of Perl Wisdom