my $dbh = SQL::Catalog->db_handle; my $SQL = SQL::Catalog->lookup('city_date_via_temp_hi') or die 'not found'; my $sth = $dbh->prepare($SQL, $cgi->param('degrees')); .... etc