Category Archives: the writing process

The locale’s thousands separator

Perl can use the thousands separator appropriate for your locale, as well as the appropriate decimal separator. The Number::Format from CPAN can do all sorts of interesting localizations, but POSIX can do it. I debated offering an example in Learning Perl (7th Edition), but POSIX‘s localeconv function returns a hash reference. And, although I’ve added […]

Can you learn Perl from an old Learning Perl?

A question at Yahoo! Answers asks “Is it okay to learn perl with an out-dated book?”. This showed up in my Google Alerts in a new link attractor site that wants to get referral and ad revenue. It’s a four year old question, which puts it in the desert between Perl 5.8 and Perl 5.10. […]

Updated Learning Perl, 6e ebook

There’s an updated O’Reilly ebook for Learning Perl, 6e. If you’ve already purchased the ebook, the update should already be in your O’Reilly account. I’m not sure how that works because my account has special author magic associated with it. If you don’t have an O’Reilly account, you can register your books for free. When […]

Updates to Chapter 15, “Smart matching and given-when”

[This post notes differences between the fifth and sixth editions.] The chapter on smart matching and given-when is the newest chapter, but also the one a bit out of date. Since we were writing the fifth edition right on the cusp of the release of Perl 5.10.0, we weren’t aware of all the problems that […]

Updates to Chapter 5, “Input/Output”

[This post notes differences between the fifth and sixth editions.] With the added emphasis on Unicode, we had to update the chapter on input and output a bit. If we are going to talk about Unicode, we need to talk about encodings, which expands the material on three argument open and brings in binmode too. […]