Basically, I would like to create a hash table that looks like:
{"ClassNumber" = $ClassNumber; "Student" = @($Student1,$Student2,...$Studentx)}
I would like to be able to add the ClassNumber, with a Student, then continue to add Students to the Student array one at a time, while leaving the same ClassNumber. Ie,
$hash = {"ClassNumber" = $ClassNumber; "Students" = @($Student1)}
now add Student2, so it looks like
{"ClassNumber" = $ClassNumber; "Students" = @($Student1,$Student2)}
until I have all Students, then add a new ClassNumber and associated Students.
I would also like to be able to access each one as follows:
$hash["Class1"][0]
$hash["Class1"][1]
$hash["Class1"][2]
$hash["Class2"][0]
$hash["Class2"][1]
$hash["Class2"][2]
$hash["Class2"][3]