Slash Boxes
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.
More | Login | Reply
Loading... please wait.
  • 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.

    # 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 '' (won't compile on Solaris); using 'Readonly' instead of 'constant' (Readonly won't compile on Solaris).

      And I refuse to use '
      • by Damian (784) on 2005.11.12 16:16 (#44485)
        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 decision to use them, then the book has done its job. :-)


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