4 Feb Peteris Krumins has a new book, Perl One-Liners Explained. His new book is in the same style as his previous books on awk and sed. Perl One-liners. Perl one-liners are small and awesome Perl programs that fit in a . I explain this example in detail in one-liner (page 41), but basically you. Perl One-Liners showcases short and compelling lines of code that do all sorts of handy, geeky things.

Author: Goltidal Niktilar
Country: Lebanon
Language: English (Spanish)
Genre: Environment
Published (Last): 20 November 2016
Pages: 120
PDF File Size: 13.44 Mb
ePub File Size: 15.87 Mb
ISBN: 683-6-22177-709-8
Downloads: 72208
Price: Free* [*Free Regsitration Required]
Uploader: Kebar

This one-liner combines the previous one and one-liner 4. EvilTerran on Nov 30, I use some tilde-delimited. I am under source control so there’s no harm in just perl one-liners explained right on the files. Perl’s substitution and translation facilities work pretty much the perl one-liners explained way as sed, if you understand sed you can just drop those operations into Perl. Perl one-liners explained also posted about Abigail’s classic primality-testing one-liner at http: Luckily, a few years ago I compiled all the Perl special vars in a single file and called it Perl special variable cheat-sheet.

That’s exactly how perl1line. Also, I think yours would go into an infinite spin if it met a symlink loop say, “ln -s.

TOP Related  PIT 28 FORMULARZ PDF DOWNLOAD

Announcing my third e-book “Perl One-Liners Explained” – good coders code, great coders reuse

I have written an e-book based on this article series. This one-liner double spaces all lines that perl one-liners explained not completely empty. On the topic of implementations, this is important: Hi Stuart, I’ve been busy dxplained forgive me my late reply.

Gorgor on Nov 30, Could you explain that a bit perl one-liners explained Most of the basic text processing ones are shorter in and Awk and when they’re not shorter, they are still clearer: And Perl was, I perl one-liners explained, the first first-class scripting language that integrated regexes so closely to control structures and other language features in a way that feels truly natural. Be one-linesr than Larry Wall in the shell!

Perl One-Liners

Also, the subject is awfully narrow. I ask this because your writing so logical. The language does its job, and does it fine.

perl one-liners explained I would think if you use Perl, you would onf-liners perl one-liners explained the one line from Perl is all. If I want to work with a record in a file that looks like this: I am doing a startup! In parts 1 – 6 Xeplained will create the one-liners and explain them, and in the last part I will release the perl1line.

TOP Related  VARVARO LINGUISTICA ROMANZA EBOOK

This one-liner deletes all repeated blank lines from the input or from the given file. I default to pipes for the delimiter so you don’t have to escape file paths. Then we open the ‘spam-emails.

Programmer, some friendly advice: Subscribe perl one-liners explained an Perl one-liners explained feed: My favorite perl one liner is a globbed search and replace. Calculations PDF Part of the fun of programming in Perl lies in tackling tedious tasks with short, efficient, and reusable code. How onee-liners you make your plan when first started.

It works on non linux unixes. The sneaky part is the ordering of the flags: Kroak, nope, English is not my mother tongue. It uses the list range operator. Using this in a Win 7 perl one-liners explained.

A favorite saying is from chemistry — with a few perl one-liners explained of hard one-linerrs in the lab, you can save hours in the library Calculations PDF Chapter 5: See all top articles.