q-series identities and values of certain L-functions