in reply to Re^2: DBI returning error on selectrow_hashref
in thread DBI returning error on selectrow_hashref

No, the error is caused by $dbh having nothing in it.
  • Comment on Re^3: DBI returning error on selectrow_hashref