
Everything beginners need to start programming with Perl Perl is the ever-popular, flexible, open source programming language that has been called the programmers’ Swiss army knife. This book introduces Perl to both new programmers and experienced ones who are looking to learn a new language. In the tradition of the popular Wrox Beginning guides, it presents step-by-step guidance in getting started, a host of try-it-out exercises, real-world examples, and everything necessary for a Perl novice to start programming with confidence. Introduces Perl to both new programmers and experienced ones who want to learn a new language Provides a host of real-world applications for today's environments so readers can get started immediately Covers the new features of Perl but fully applicable to previous editions Beginning Perl provides the information and instruction you need to confidently get started with Perl. For Instructors: Classroom and training support material are available for this book.
Curtis Poe's Beginning Perl is a good all around introduction but I'm unsure if it's a good intro if you're aiming specifically for the text mangling side.
For an uber-quick-start, I'd go with https://qntm.org/perl_en and then getting up to speed on the regexp side using the man pages linked from here: https://p3rl.org/RE
Beginning Perl by Ovid.
Modern Perl by chromatic.
There are a lot of other good Perl books but some of them are getting old and it is better to already know a bit before reading so one can separate good from dated etc.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.
Be advised that some of the books mentioned are old and while still good books does not teach modern style Perl. Beginners should in my opinion start with Beginning Perl by Ovid and Modern Perl by chromatic (first book in the article).
If you read Ovid's Beginning Perl, or chromatic's Modern Perl, you'll find they managed to explain the concepts very easily.
It doesn't take a guru. Only anyone who actually cares about readability or learned from recent books like Ovid's Beginning Perl or chromatic's Modern Perl.
The main problem Perl has is not anything to do with its language. It's all the old books from the 90s (that some diehard still recommend), but which teach outright shit when it comes to readable or reliable code.
