Help for this page

Select Code to Download


  1. or download this
    my @student_list;
    push @student_list, { studentName => 'John', studentSurname=>'Somethin
    +g',  studentID=>'9534', age=>'12' };
    push @student_list, { studentName => 'Mary' ,studentSurname=>'Somethin
    +g2',  studentID=>'5489', age=>'13' };
    
  2. or download this
    0  HASH(0x80355e98)
       'classroomID' => 10
       'classroomName' => 'classroom1'
    ...
             'studentID' => 5489
             'studentName' => 'Mary'
             'studentSurname' => 'Something2'
    
  3. or download this
     print $classrooms[0]{students}[1]{'studentSurname'}; # prints 'Someth
    +ing2'
    
  4. or download this
    print $classrooms[0]->{students}->[1]->{'studentSurname'}; # prints 'Something2'