in reply to Style and Coding criticism requested
1) ++inelukii for posting homework...after the fact, so to speak. As already mentioned, there are enough sharps in your code to make the eyes bleed, and for the most part are commenting code that is pretty obvious.
foreach (0.. $#(somearray) ) can be a real drag sometimes, and almost always better written as foreach my $element (@array) unless you absolutly need the numeric index. Out of interest, how were you marked for this assignment?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Style and Coding criticism requested
by Anonymous Monk on Feb 12, 2003 at 01:43 UTC | |
by submersible_toaster (Chaplain) on Feb 12, 2003 at 01:53 UTC |