2 of 2 people found the following review helpful
Interesting (if flawed) guide to an under-used Perl feature,
This review is from: Perl One-Liners: 130 Programs That Get Things Done (Kindle Edition)
Perl one-liners are an important part of its power and flexibility. The ability to process a file quickly without having to write a program is often really useful. Any Perl programmers should take the time to get to know the command like switches that make this possible. This book is a pretty good introduction to this way of using Perl.
So why only three stars? Well, I have a couple of reservations about the book. Firstly, there are a few technical errors which the editors should have caught. For example, a few times the author refers to "array context" where he means "list context". The difference between arrays and lists is often difficult for beginners to master and it doesn't help when books blur the distinction.
My other reservation is with the programs themselves. The book boasts "130 programs that get things done". But I think they have had to stretch things a bit to get to that number. One program might be "print lines that match a pattern". Then the next program will be "print lines that don't match a pattern". I'm not sure that inverting the logic in a one-liner is enough of a difference to justify counting it separately. Sometimes you'll come across two or three pages of examples all of which are only tiny permutations of each other.
But it's good to see publishers bringing out books on Perl. And this is certainly an area of Perl that hasn't received much coverage before. I just think it's a rather thin concept to spin out to a book. Even this stretched, it's a rather thin book (140 pages - 50 of which are appendices). It might have been better as a cheap Kindle-only publication.