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?


I can't believe it's not psellchecked

Replies are listed 'Best First'.
Re: Re: Style and Coding criticism requested
by Anonymous Monk on Feb 12, 2003 at 01:43 UTC
    Received 100 for the assignment and an extra 5 points for the shortest solution. ;)
    As far as all the comments go, I apologize, but you just have to know this professor. It annoys me more than anything the amount of commenting we have to do. Thanks for the kind words so far.

    Inelukii

      I had my suspicions that the comments were for the benefit of your prof. Interesting aside: A colleague turned in several assignments in uni as pseudo code, splattered with comments, after 'learning' the prof never ran the student assignments! May the karma catch him eventually