News for hackers. Stuff that matters.
Re:Announcing my third e-book "Perl One-Liners Explained" by agj on Wednesday February 01, 2012 @10:11AM (#3538229)
Perl one-liners are a great way to learn more about Perl -- there is a lot of uncommon syntax that makes some of the more advanced examples more like little puzzles.

However, if you are not familiar with Perl, and fall to the common stigma that Perl is unreadable, I urge you to delve more into the modern Perl community. The community doesn't have the same tendencies towards built-in obfuscation anymore.

Re:Announcing my third e-book "Perl One-Liners Explained" by rjbond3rd on Wednesday February 01, 2012 @10:49AM (#3538402)
Minor quibble but on his second example:

> perl -le 'print map { ("a".."z")[rand 26] } 1..8'

The double quotes are not needed around a and z. (Verified in 5.14, 5.12, and the truly ancient 5.8).

Re:Announcing my third e-book "Perl One-Liners Explained" by chromatic on Wednesday February 01, 2012 @01:11PM (#3539160)
Certainly; they're barewords interpreted as string literals. The strict pragma forbids this interpretation.
Re:Announcing my third e-book "Perl One-Liners Explained" by pkrumins on Wednesday February 01, 2012 @10:51AM (#3538415)
Yup, that's explained in the book, section 5.1. :)
Re:Announcing my third e-book "Perl One-Liners Explained" by rjbond3rd on Wednesday February 01, 2012 @10:58AM (#3538448)
Yes, I was just now reading the PDF book excerpt and came to note that there are no quotes in the example as it appears in the book, on page 4. The book looks like a great balance between fun and sheer density of information, a reference book that manages to be a delight to read.
Re:Announcing my third e-book "Perl One-Liners Explained" by pkrumins on Wednesday February 01, 2012 @11:14AM (#3538531)
That's correct. The density of information approaches the theoretical maximum. ;)