in reply to Style and Coding criticism requested

Your specifications state:

Firstname Lastname list_of_grades(any number of grades)

Hence, you need to check to make sure a student has at least 1 grade before trying this division:

$students{$name_index}{avg_grade} /= scalar(@{ $students{$name_index}{ +grades} });

teachers are sneaky at times (or so experience would tell me). all else looks good though.

-enlil

Replies are listed 'Best First'.
Re: Re: Style and Coding criticism requested
by Anonymous Monk on Feb 12, 2003 at 01:45 UTC
    My mistake. The assignment allowed us to assume that each student had at least one grade, otherwise I would have done exactly as you suggested.

    Thanks,
    Inelukii