Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Perl Best Practices

    Perl Best Practices

    Damian Conway · 2005

    This book offers a collection of 256 guidelines on the art of coding to help you write better Perl code--in fact, the best Perl code you possibly can. The guidelines cover code layout, naming conventions, choice of data and control structures, program decomposition, interface design and implementation, modularity, object orientation, error handling, testing, and debugging. - Publisher

    Programming
    Open LibraryAmazon
    Stats for nerds
    22recommend
    59mentions
    42people
    2008–2025years
    51% recommend46% neutral3% critical

    Mentions per year

    2008201020122014201620182020202220242025

    What Hacker News says

    1. tasty_freezeDec 2025
      Check out "Perl Best Practices" by Damien Conway, and the more recent "Modern Perl" by Chromatic. Both can be had as paperbacks, and I think both are also available free on online.
      thread
    2. programdDec 2025
      I'll go further. Ignore the Perl specific bits and Conway's "Perl Best Practices" is one of the best general programming books ever written.

      It has so many great pieces of advice that apply to any programming task, everything from naming variables, to testing, error handling, code organization, documentation, etc, etc. Ultimately, for timeless advice on programming as a profession the language is immaterial.

      thread
    3. cafardNov 2025
      About a dozen years ago, I noticed that the young all seemed to know Python, and did not seem to know Perl. Given that they would be maintaining such code as I wrote and was worth keeping around, I moved to writing in Python. Now when I write Perl, I do silly things like forget semicolons.

      Perl can be very well written. I deeply regret not encountering Perl Best Practices when it came out.

      thread
    4. cafardDec 2024
      Most of the someone else's I have read has been in stuff from CPAN, and I recall it as pretty good. I have written some pretty bad Perl, and wish that I had encountered the O'Reilly Perl Best Practices long before I did.
      thread
    5. krylonJul 2023
      It's an odd critter, but it gets the job done. There are a few pitfalls, such as list flattening, but in my experience, once you are aware of them, they are not hard to avoid.

      If you are new to Perl, I highly recommend reading Damien Conway's Perl Best Practices. Even if you end up not picking up all the suggestions, it is worth thinking about them and the problems they try to address.

      thread
    6. HybridCurveJun 2023
      Yes, it's a great language for this application.

      Make sure you read Damian Conway's book "Perl Best Practices" as a guideline for crafting consistent and readable code. People's biggest gripes about this language generally revolve around poorly written code that is hard to read. Also, when writing regexes it helps to paste one or more example lines or matches above the regex so there is no question about what you are trying to do. 9/10 times I've found debugging SA perl scripts comes down to an unhandled pattern in a regex and this is what helps the most when re-writing it to ensure it doesn't break anything else.

      thread

    Related

    Cover of Higher-Order Perl
    2007–2026

    Higher-Order Perl

    Mark Jason Dominus
    74 recommend · 122
    Cover of Programming Perl
    2007–2026

    Programming Perl

    Larry Wall
    90 recommend · 298
    Cover of Minimal Perl
    2014–2023

    Minimal Perl

    Tim Maher
    3 recommend · 6
    Cover of Effective Perl programming
    2010–2018

    Effective Perl programming

    Joseph N. Hall
    5 recommend · 8
    Cover of Object Oriented Perl
    2008–2025

    Object Oriented Perl

    Damian Conway
    6 recommend · 7
    Cover of Learning Perl
    2008–2026

    Learning Perl

    Randal L. Schwartz
    9 recommend · 15
    Cover of Mastering Perl
    2014–2022

    Mastering Perl

    brian d foy
    2 recommend · 4
    Cover of Mastering algorithms with Perl
    2008–2022

    Mastering algorithms with Perl

    Jon Orwant
    4 recommend · 6