I don't understand this attitude.

You know that we are going to advise you to use strict.pm. But you don't because you don't think you had time, and you don't think that it is really worth it with all of your code. Yet you think that we should take out the time to analyze and fix your code for you.

That is exactly backwards.

The times to not use strict.pm are when you are writing so little code that you don't need its assistance, or for short blocks where you don't want what it does for very specific reasons. Otherwise avoiding it leads to your taking more time. Furthermore the more code you write, the worse it is.

Beyond that my advice is standard. Indent properly. Think about your problem, try to find common logic so that you don't have to have large sections of similar code. (For instance don't have 3 sets of subroutines depending on which angle you are working on, instead relabel.) Avoid global variables. Etc.


In reply to Re (tilly) 1: Trig in Perl by tilly
in thread Trig in Perl by dr_lambado

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.