- or download this
struct Appt => {
startTime => '$',
...
appts => '@',
numAppts => '$',
};
- or download this
my @days;
my $dayCount = 0;
- or download this
sub hdl_start
{
...
}
$currEle = $elt;
}
- or download this
# Get the number of appointments
my $numAp = $days[$dayCount]->numAppts;
...
# Insert my new Appt struct into the appts array
$days[$dayCount]->appts[$numAp] = $temp;