in reply to Trig in Perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly)1: Trig in Perl
by dr_lambado (Hermit) on Sep 04, 2001 at 21:01 UTC | |
by tilly (Archbishop) on Sep 04, 2001 at 21:27 UTC | |
by chromatic (Archbishop) on Sep 04, 2001 at 21:31 UTC | |
by dr_lambado (Hermit) on Sep 05, 2001 at 00:15 UTC | |
by John M. Dlugosz (Monsignor) on Sep 04, 2001 at 21:16 UTC | |
by pmas (Hermit) on Sep 05, 2001 at 00:33 UTC |