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.
  • I admit I didn't see it at first. So I copied the code into emacs. I have a habit of using perltidy in emacs to clean up my code, So I did that first. The problem jumped right out at me because of the indentation.

    Then I tried just using cperl-mode indenting and it pointed the problem out to me also.

    So does it really need to be a error/warning? or should we rely on our editor to find it.

    • I argue in my roles talk (well, the one I'm giving in Lisbon) that complexity management tools should be pushed into the langauge (when possible), rather than relying on external tools. While I don't think this falls in the category of complexity management, I think that the principle of "language support, when possible" applies here. If someone doesn't have your editor setup, they could easily miss this. Personally, I think this problem is common enough that a warning is quite appropriate.

      I still rememb