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.
> 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).