Help for this page

Select Code to Download


  1. or download this
    $student_name = (defined $row[1]) ? $row[1] : ' ';
    $student_blah = .... ad naseum
    
  2. or download this
    while (my @row = $sth_report->fetchrow_array) {
       @row = map { $_ || ' ' } @row;
    
       # .... rest of code
    }
    
  3. or download this
    my %college;
    while (my @row = $sth_report->fetchrow_array) {
    ...
      
       push $college{$college}, [@row];
    }
    
  4. or download this
    foreach my $college (keys %college) {
        print "$college:\n";
    ...
            print "\t", join(', ', @$row),"\n";
        }
    }