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