Perl lets you be sloppy which is ok on a 1 to 5 line script. Some 'programmers' (and I use the term loosely) don't realize that there's a difference between these 1-5 liners and a 3000 line app. I just finished helping someone on the DBI list who thought that 'use strict' was 'too much trouble' and yet it would have helped find the problem right away (system table names with '$' in the name getting interpolated in double quotes).

I've seen one programmer avoiding arrays because he thought they were broken (He had bad input, and didn't know how to debug CGI code from the command line - he'd only run it from the browser). And he didn't use hashes because he didn't know what they were. Update: and he didn't use placeholders in DBI...now there was a weird issue where directly pasting the value in the SQL worked ok, but using placeholders it did not because of a newline in the data. Again, it was another place where debugging in the browser was insufficient (Gee, I printed the variable, and it looks ok...).

Bad programming is possible in any language (see How to Write Unmaintainable Code), but perl lets you be really bad if you want to be or don't know any better.


In reply to Re: Perl as Cr*p? by runrig
in thread Perl as Cr*p? by Ovid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.