Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

http://modernperlbooks.com/books/modern_perl_2016/index.html ... seriously tho, if your search engine didn't at least link "modern perl" to somewhere in that site, something's very wrong with it. (edit: I see what you mean, it's thin on worked examples. I'd say browse around cpan for new uploads, most new perl code these days uses modern idioms)

The principles of modern perl pretty much boil down to "use the new stuff and turn off the old stuff":

* use strict and warnings, those go without saying. 'autodie' is also pretty much de rigueur these days too.

* disable legacy things like bareword filehandles and indirect object syntax.

* enable unicode everywhere by default in strings and I/O layers

* use Moose, or at least a compatible subset like Moo or Type::Tiny. This is probably the biggest differentiator of modern perl, as Moose is a major addition to the OO system, basically a backport of the perl 6 object system.

I wouldn't say the evolution of the language via modules is any kind of "faction", it's very much the mainstream thought of perl and always has been. Perl was designed from nearly the start to be hackable from within itself.

Also quite a few hits on CPAN: https://metacpan.org/search?q=modern%3A%3Aperl (ima convert all my old production code to Acme::Thoroughly::Modern::Perl tonight!)



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: