#Is the following elseif always true if $section is not null ?
elsif ($section) {
not null and not eq '0'
#What does the following line means?
$section{$section}->{$up}++;
Increment the value indexed by $up in the hashref in the value indexed by $section in the %section hash
#What does the following line means?
$section{$section}->{$1}++;
Increment the value indexed by $1 in the hashref in the value indexed by $section in the %section hash