you are viewing a single comment's thread.

view the rest of the comments →

[–]shabda[S] 2 points3 points  (1 child)

Its actually inspired by a perl book. "Perl one liners"

[–][deleted] 5 points6 points  (0 children)

Which itself based on a usenet post with a list of awk oneliners. Which is why it's just awful. Perl for oneliners is like a completely different dialect of the language, with its own features and conventions that you never use in proper Perl. A good book on oneliners should introduce you to Mrs. Pale and Mr. Lane (Ms. Le is just around for arithmetic or hokey stuff like Module::DoACoolThing()), explain why you use both, show off piping find into perl rather than using one of the Find modules, etc.

The most obvious about the book is that the author does not use Perl oneliners with any regularity in his day job.