I was recently reading an article somewhere (I've lost it since) that claimed that "...Perl encourages a lack of discipline..." For a moment or two, I thought that might be correct. I realized, though, that it's not.

Perl allows a lack of discipline, but that's not really the same as encouraging it. Unlike some B&D languages like Pascal, Perl will allow me to do some very careless and risky things, if I want. Perl does not force me to behave myself. Leave off the use warnings and use strict pragmas, and Perl will let me do all kinds of things without complaint. If I'm just throwing together a quick script for a once-off job, I don't have to declare all my variables and #include header files.

On the other hand, I can also use the pragmas and OO programming to be as disciplined as I want. It's up to me.

Perl is about freedom to choose how much or how little discipline I want. It's up to me, not someone else who wants to protect me from myself. Larry and company no doubt have some opinions about discipline, but they don't impose their ideas on me. They let me choose. They trust me to choose wisely (or, sometimes, to pay the consequences).


In reply to Perl and Discipline - and Freedom by spiritway

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.