Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You know I love it, but I'm even more tickled that he liked Module::Starter. Hooray for me and RJBS!
    --

    --
    xoa

  • I'm not completely reformed yet, but ...

    I like the book so well I bought the course for my colleagues.

    I like the book so well I bought a second copy to keep at the office.

    --
    Bill
    # I had a sig when sigs were cool
    use Sig;
    • PBP is so good it's hard to put in words. From now on whenever someone starts dissing Perl, talking about linenoise and More Than One Way to Shoot Yourself in the Foot, I can point them to PBP and get on with writing (good!) code.

      However the book is not perfect.

      I've been stung by three of Damian's recommendations so far: replacing '' with q{} (without thinking); using 'version.pm' (won't compile on Solaris); using 'Readonly' instead of 'constant' (Readonly won't compile on Solaris).

      And I refuse to use '
      • I've been stung by three of Damian's recommendations so far:

        While I won't be held responsible for the deficiencies of Solaris (;-), I am very keen to know how replacing '' with q{} stung you.

        'and', 'or' and 'not' have the lowest precedence and hence there is never any confusion

        The usual confusion is that people expect assignments and commas (especially in argument lists) to be of lower precedence than those three boolean connectives. But as long as it encouraged you to think through your decis

        • Since I have yet to purchase the book what exactly does replacing " with q{} mean? Are we talking simple assignments like:

          my $new_var = q{This is the var};

          Or something totally different?

          • I could say read the book...

            Damian recommends replacing empty strings (often typed as '' (singlequote-singlequote)) with q{} so you don't misread it as one doublequote (which is exactly what happened in my previous post).

            • Oh I will get the book. No doubt about that.

              And the reasoning for q{} seems sound as well. That will be a re-trainer though. : )

      • What do you mean by
        version.pm' won't compile on Solaris ... Readonly won't compile on Solaris

        Per CPAN Testers, version and Readonly compile on Solaris with 5.8.5 http://testers.cpan.org/show/version.html [cpan.org] http://testers.cpan.org/show/readonly.html [cpan.org]

        Are you trying to use Solaris bundled 5.005_03? Trying to build C-based modules with a different compiler than Perl was built with?

        --
        Bill
        # I had a sig when sigs were cool
        use Sig;
  • I haven't been able to eek it out of my budget yet! I am working on it though.
  • I laughed, cried, fell down, my life was changed. Well, maybe I didn't cry so much ;-).

    Seriously though, best perl book since I first picked up the Camel. Any project that uses PBP as a guideline is doing at least one thing right.

    In a way it's a shame this came out in this form though. I'd imagine that a guide to perl best practices could best be implemented in a wiki, with arguments for and against certain practices as well as updates and additions from the community. The book would be a perfect baseline

    • In a way it's a shame this came out in this form though. I'd imagine that a guide to perl best practices could best be implemented in a wiki, with arguments for and against certain practices as well as updates and additions from the community.

      PBP (any "best practices" in general) works best when it comes from a single voice. Damian synthesized a lot of experience when he condensed it into a dead tree. So this isn't one lone kook's guide to what makes for good Perl, but a coherent guide to what some of th
  • I got mine this week and have been skimming through it this week before going to sleep. I can't say I agree with everything, but he argues his case and it's a mostly consistent story. Probably the best perl book I've read since Effective Perl Programming.

    --
    -- "It's not magic, it's work..."
    • Lately I've been contributing to the Perl::Critic project. That module analyzes your code against a collection of Policy modules, most of which are inspired by PBP. If you're interested in converting your code to Damian's recommendations, I recommend starting with Test::Perl::Critic.

      Plug: we'd be thrilled to have more contributors for Policy modules! Our SVN repository is at perlcritic.tigris.org. I've added a list of wanted PBP recommendations in the TODO file [tigris.org]
  • I purchased it from Bookpool today. : )
  • PBP is the first Perl book I've purchased. I learned Perl primarily from the perldocs (combined with about 7 years of painfully banging my head on the walls), which may say more about me than it does about anything else. I never had the desire to buy a Perl book, but I'm glad I bought this one. I love it. I think if I recommend it to any more of my friends, they'll start painfully banging my head on the walls themselves. :-)