by steven_braham on 7/14/17, 10:47 PM with 1 comments
by vgy7ujm on 7/15/17, 9:33 AM
Some suggestions for you to research to further improve your script:
You are using a lot of shell commands in backticks like `rm -rf out && mkdir out`;
This can be very useful if you want to capture the output of such commands, but it also runs the commands in separate processes using the shell programs. For much of what is in your script you can just use Perl! :)
Read up on core modules like Archive::Tar and the various IO::* modules to start using pure Perl for what you need to do. http://perldoc.perl.org/index-modules-A.html
Good books to read would be Modern Perl by chromatic or Beginning Perl by Ovid.