my %hash=(inst => { dept1 => { rollno=> { [name,marks], [name1,marks1], }, inst2.... });