Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Gaussian Elimination Algorithmby ccarden (Monk) |
on Aug 06, 2003 at 20:01 UTC ( [id://281567]=note: print w/replies, xml ) | Need Help?? |
Hi, grexman,
I like to be able to read code, too, and I've learned most about that subject from this very website. Encapsulate more of your code into subs. It might make the code run a bit slower (hrdly noticable), but it will be much easier to derive what each section of code is doing simply by looking at the sub calls (assuming you can use descriptive names for your subs). Each of your major comments in your code probably mark good sections to sub-ify. I was just turned onto the Getopt::Long and Pod::Usage modules, which have made my code infinitely more readable, easier to debug, and much more professional looking. They will add a bit of overhead to the size of your program, but you'll appreciate their benefits, too. -- ccarden
In Section
Craft
|
|