The book heavily leans on examples and exercises to help you get comfortable with using Perl from the command line. It is recommended that you manually type each example and experiment with them.
You should be comfortable with programming basics and have prior experience working with Perl. You should know concepts like scalar, array, hash and special variables, be familiar with control structures, regular expressions etc. You should also have prior experience working with command line and bash shell and be familiar with concepts like file redirection, command pipeline and so on.
For a preview of the book, see sample chapters at https://github.com/learnbyexample/learn_perl_oneliners/blob/main/sample_chapters/perl_oneliners_sample.pdf
Visit https://github.com/learnbyexample/learn_perl_oneliners for code snippets and exercise files. The repo also has solutions for exercises.