"my" variable $dbh masks earlier declaration in same scope...