my $sql = <prepare($sql); $sth_year->execute( $year ); my $results = $sth_year->fetchall_arrayref(); ...